mojira.dev
MC-135115

Ender dragons visually face the opposite direction from their rotation value

Ender dragons' rotation value and visual rotation do not match, it is visually rotated 180 degrees.

Steps to reproduce:

  • Spawn an ender dragon.

    /summon ender_dragon

Option 1:

  • Run the following command in a repeating command block:

    /execute at @p as @e[type=ender_dragon] run tp @s ^ ^ ^20 facing ^ ^ ^-20
  • Observe the dragon faces away from you.

Option 2:

  • Run the following command in a repeating command block:

    /execute as @p at @e[type=ender_dragon] positioned ^ ^ ^10 facing entity @e[type=ender_dragon,limit=1] feet run tp @s ~ ~ ~
  • Observe you're put behind the dragon

Option 3:

  • Run the following command in a repeating command block:

    /execute as @p at @e[type=ender_dragon] run tp @s ~ ~ ~ ~ ~
  • Observe you're facing the opposite direction from the dragon at all times.

The dragon faces the exact opposite direction, being visually rotated 180 degrees compared to the rotation value; this messes up commands which use the local coordinates.

Linked issues

Attachments

Comments 9

Can confirm in 20w51a.

Can confirm in 1.18.2 and 1.19-rc2; the ender dragon's facing is rotated 180 degrees, this can also be seen when enabling hitboxes.

Confirmed for 1.19.2; requesting this report get rewritten:

Summary: Ender dragons visually face the opposite direction from their rotation value

Description:

Ender dragon's rotation value and visual rotation do not match, it is visually rotated 180 degrees.

Steps to reproduce:
Summon:

  1. Enable hitboxed (F3+B).

  2. Use the command

    /summon ender_dragon ~ ~ ~ {NoAI:1b,Rotation:[0f,0f]}
  3. Observe which way the dragon faces, and compare it to the line of sight (blue line).

  4. Do step 2 and 3 again, but with different rotation values.

Teleport:

  1. Use the command

    /summon ender_dragon ~ ~ ~ {NoAI:1b,Tags:["teleport_dragon"]}
  2. Move away from the dragon.

  3. Use the command

    /execute as @e[tag=teleport_dragon] at @s run teleport @s ~ ~ ~ facing entity @p feet
  4. Observe the dragon's facing direction.

Expected result:

The dragon would face the direction provided (summon)/face you (teleport).

Actual result:
The dragon faces the exact opposite direction, being visually rotated 180 degrees compared to the rotation value.

Updated the report; thank you. 👍

Another way to reproduce:

  1. Enter spectator mode.

  2. Run the command below.

    /spectate @e[type=ender_dragon,limit=1]
  3. Press F5 to enter third person view.

  4. Observe which way you face compared to the dragon.

This issue also affects bedrock editions, I've created MCPE-168109 to describe the issue there.

Confirmed for 1.20.1 and 1.20.2-pre3, requesting ownership as reporter has done nothing on mojira aside from making this report; never maintained it.

This also affects 24w14a, requesting ownership if possible.

Peter S

[Mod] turbo

(Unassigned)

Confirmed

Commands

ender_dragon

Minecraft 1.13, Minecraft 1.13.1, 1.16.1, 20w28a, 1.16.3, ..., 1.20.2 Pre-Release 3, 1.20.2, 23w43b, 1.20.4, 1.21.1

Retrieved