Affected versions:
18w02a
to present
Steps to reproduce:
Throw an item on the ground
Type /tp @p ~ ~ ~ facing entity @e[type=!player,sort=nearest,limit=1] feet
I think this might be something that is only on my computer. In 18w01a (facing was introduced) the whole tp command works, but in 18w02a, it always points about 1.6 blocks too high (or exactly the height of player eyes). I tested this with every mob (and some other entities) in both 18w01a and 18w02a. In 18w02a, it always pointed to their eyes, and when on "eyes" setting, plus the height of the player's eyes. I didn't measure it, but on blazes, zombies, etc. where they are the same height, "feet" pointed me directly at their eyes and "eyes" pointed me twice as high. And this effect was consistent throughout the rest of the mobs.
Linked issues
is duplicated by 2
Attachments
Comments 9
I actually discovered this bug in 18w43b while I was playing with new commands, but now I am upset that I can't simulate breaking a block without having the player click and without nasty particles! Please fix so I can get back to my life 😃 I'll try another computer tomorrow and if there is any difference I'll edit the report.
e.g. /tp @p ~ ~ ~ facing entity @e[...] eyes
means "make it so the player's feet are facing the entity's eyes," which I think is exactly what you're observing and is correct behavior
No execute commands involved. As in the description /tp @p ~ ~ ~ facing entity @e[type=!player,sort=nearest,limit=1] feet directs me to their feet plus my height, and "eyes" instead of "feet" points me to their eyes plus my height.
Your screenshots are crystal clear.
When you use feet, your vision casts a straight line between your feet and the entity's feet.
When you use eyes, your vision casts a straight line between your feet and the entity's eyes.
Your feet are always one of the points because feet is the default anchor. Your eyes are irrelevant, as they are not the selected anchor.
Oh.
I didn't know about the connection between execute anchored and tp facing until just now. Welp sorry for your time I guess I was just looking for execute anchored eyes this whole time. :\
I'm not sure I understand the issue here. There are two important anchors – the player and the entity to be looked at. Unless you use
/execute anchored eyes
, the player's anchor will be feet. Therefore all commands will rotate you such that your feet are looking at the entity's feet/eyes.