The Bug:
Non-player entities teleported to other dimensions using /teleport ... facing don't face the given position.
Entities teleported within the same dimension face the given position, therefore introducing an inconsistency.
Steps to Reproduce:
Switch to creative mode and start flying.
Summon a cow with no AI facing south by using the command provided below.
/summon minecraft:cow ~ ~ ~3 {NoAI:1b,NoGravity:1b,Rotation:[0f,0f]}Keep the same place in the End loaded by using the command provided below.
/execute in minecraft:the_end run forceload add ~ ~3Teleport the cow to the End, facing east, by using the command provided below.
/execute as @n[type=minecraft:cow] at @s in minecraft:the_end run teleport @s ~ ~20 ~ facing ~10 ~20 ~Teleport yourself to the End next to the cow by using the command provided below.
/execute in minecraft:the_end run teleport @s ~ ~20 ~Observe if the cow faces east.
Observed Behavior:
Non-player entities teleported to other dimensions using /teleport ... facing don't face the given position.
Expected Behavior:
Non-player entities teleported to other dimensions using /teleport ... facing would face the given position.