1
Commandblock help needed!
Is there a way to rotate a players head so it will face it's nearest entity?
Create an account or sign in to comment.
4
info Note: You're viewing a single reply. View all replies
1
Not really. You would have to measure the x, y and z distance between the player and the nearest entity (using iterations of moving armorstands or something) and then apply some geometry calculations to get the proper rotation. But you won't be done yet, because there's no way to automatically put those rotations in a tp command, so you would have to set the player at rotation 0 0 and then iterate through the rotations, subtracting form them till you reach 0.
tl;dr
Lot of work, works pretty slow, inaccurate. It's probably not worth it.
tl;dr
Lot of work, works pretty slow, inaccurate. It's probably not worth it.