Topic category: Help with modding (Java Edition)
I am trying to make a sword that when right-clicked on a mob it will teleport the player behind the mob's back and make the player look at the mob's back. I got the teleporting part of that down but I can not for the life of me figure out how to change the direction the player is looking. I have already tried using set rotation a few different ways but that did not seem to work. If this is possible I would like to know how to do it.