Started by
Spyjetray
on
Topic category: Help with Minecraft modding (Java Edition)
Hi,
I have made a procedure which makes an entity look in the same direction that the player looks but now I want to make the entity move in that direction, turning when the player also turns.
How do I achieve this as using straight-up movement vectors cause the entity to fly off in a specfic direction which doesn't work so what do I need to do to make it move in the direction it (and the player) is facing?
Thanks
Dude how did you make the entity so it’d look in the same direction?
this would be really useful for my mod, please keep me posted if you find out anything
(If you look North the entity will move North)
Direction of player = North
Override motion vector of entity to vx: 0 vy: 0 vz: -1
(If player looks North the entity will look North)
Direction of player = North
Set Rotation of entity yaw: (180) pitch: ()
Yaw means left or right, and pitch means up and down.
Btw make the Event trigger to, On entity tick.
Was this helpfull?
is there a way make entity always move straight/where its looking from where it spawns? if so please update me