Mob rotation update

Started by Danio_Boii on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob rotation update
Sat, 06/04/2022 - 10:00 (edited)

So let's say that i have a button that changes an global variable by 10 every time i click it. Is there a way to make so certain mob rotates  every time the value change? All help appreciated

Edited by Danio_Boii on Sat, 06/04/2022 - 10:00
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A specific mob?
Sat, 06/04/2022 - 20:06

A specific mob?

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, let's say a pig for…
Sat, 06/04/2022 - 21:30

Yes, let's say a pig for example. i tried using nbt variables but everytime i met the same error- either none or all of the mobs rotated at the same time

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
With Mcreator you will…
Sat, 06/04/2022 - 23:05

With Mcreator you will hardly be able to manipulate minecraft's own things.

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could u plz give me an…
Sat, 06/04/2022 - 23:10

Could u plz give me an example of procedure like that? Im kinda new to this kind of stuff

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
change rotation of entity…
Sat, 06/04/2022 - 23:14

change rotation of entity yaw and pitch (entity management)

i dunnot if this affects more than the head. and if the body rotates with it but

Yaw is where entity is looking. north east south etc

and Pitch is the inclination of the head. if is looking up or down

Based on 360 rotation

also there is a procedure to get the exact rotation of an entity (entity data)

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's the point im stuck at…
Sat, 06/04/2022 - 23:24

That's the point im stuck at. Changing yaw rotates the whole entity which is good. But i need help with the part where entity rotates as a single subject. Which need (as i guess) setting it's rotation to numeric nbt, where the 2nd one would be the [button +10 variable] but i can't see any possibility since setting it to global'd affect all entities of same genre and local variables can't be copied between the procedures