Started by
Danio_Boii
on
Topic category: Help with Minecraft modding (Java Edition)
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
A specific mob?
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
With Mcreator you will hardly be able to manipulate minecraft's own things.
Could u plz give me an example of procedure like that? Im kinda new to this kind of stuff
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)
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