mojira.dev
MC-154321

"/teleport facing" faces too high

This command makes an armour stand face the executioner's eyes, even though it should face the feet:

/tp @e[type=armor_stand] ~ ~ ~1 facing entity @s

The coordinates here are arbitrary, it works the same with ~ and ^ and even when not changing the armour stand's position at all.

This command makes an armour stand face some point above the executioner's head, probably as much higher than the eyes as the eyes are higher than the feet:

/tp @e[type=armor_stand] ~ ~ ~1 facing entity @s eyes

This does not happen if the execution context is anchored on the executioner's eyes. This command properly faces the feet:

/execute anchored eyes run tp @e[type=armor_stand] ~ ~ ~-1 facing entity @s

And this command properly faces the eyes:

/execute anchored eyes run tp @e[type=armor_stand] ~ ~ ~-1 facing entity @s eyes

Linked issues

Comments 1

teleport facing rotates one point to face another. The first is defined by the anchor (defaulting to feet), and the second included in the command. So the first command points the armor stand's feet towards your feet (thereby being level), and the second its feet towards your eyes (thereby looking above you).

FaRo1

(Unassigned)

Unconfirmed

(Unassigned)

Minecraft 1.14.3 Pre-Release 2

Retrieved