Mob rotation update

Started by Danio_Boii on Sat, 06/04/2022 - 09:20

Topic category: Help with modding (Java Edition)

Last seen on 10:22, 10. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 22:18, 7. Aug 2022
Joined Sep 2020
Points:

User statistics:

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

A specific mob?

Last seen on 10:22, 10. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 22:18, 7. Aug 2022
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 10:22, 10. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 20:37, 11. Aug 2022
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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)

Last seen on 10:22, 10. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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