mojira.dev
MC-313538

Non-player entities teleported to other dimensions using `/teleport ... facing` don't face the given position

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:

  1. Switch to creative mode and start flying.

  2. 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]}
  3. Keep the same place in the End loaded by using the command provided below.

    /execute in minecraft:the_end run forceload add ~ ~3
  4. Teleport 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 ~
  5. Teleport yourself to the End next to the cow by using the command provided below.

    /execute in minecraft:the_end run teleport @s ~ ~20 ~
  6. 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.

Attachments

Comments 1

Avoma

(Unassigned)

Confirmed

Platform

Normal

Commands

26.3, 26.4 Snapshot 10

Retrieved