Started by
Freddy101
on
Topic category: Help with modding (Java Edition)
for this procedure, i wanted to spawn a mob in front of me and have it looking the same place I was looking when I spawned it but I cant seem to move the entitys head and where its look at all.
i would also settle for being able to spawn the entity rotated where I am looking but when I do it only spawns on the x axis so I cant face it upwards or down
Edited by Freddy101 on Tue, 01/23/2024 - 06:34
Set the direction the player is looking at in a variable. Make the entity look in that direction/variable.
how would i do that
how would i do that
and do you mean a local variable
Yes I do mean that. On play update tick, set varible to entity direction entity is facing. On (Your) entity update tick, set the direction they face to that varible.