mojira.dev
MC-207174

When blocks are placed above the End altar, the Ender Dragon comes to rest on top of said blocks rather than on top of the altar

When a column of blocks are placed above the bedrock altar in the center of the end and the ender dragon perches, they will rest atop the column of blocks.

Steps to reproduce

  • Place a column of however many blocks above the center of the altar

  • Wait until the dragon perches and observe where it rests

Code analysis

Code analysis by @unknown can be found in this comment.
 

Linked issues

Attachments

Comments 17

Marty McFly

Can confirm
MC-193949 mentioned this, but ticket was not related to this issue. I'd say this is the valid one of the two.

Hipposgrumm

This bug also exists in MCPE.

 

Removing the blocks from the alter causes the dragon to get stuck trying to pathfind to the podium (which technically doesn't exist anymore).

Avoma

Relates to MC-88371.

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

7 more comments
Marty McFly

Affects 22w13a

pulpetti

In 1.18.2 and 22w15a.

ampolive

The same code causes this issue and MC-88371. Code analysis by @unknown from that ticket, using 22w15a Mojang mappings:

In DragonLandingPhase#doServerTick(...):

...
if (this.targetLocation == null) {
            this.targetLocation = Vec3.atBottomCenterOf(this.dragon.level.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING_NO_LEAVES, EndPodiumFeature.END_PODIUM_LOCATION));
        }
...

END_PODIUM_LOCATION is BlockPos.ZERO, which is (0, 0, 0). So, the ender dragon's fly target location is set to the highest non-leaves block located at (0, 0).

sof

Affects 24w40a. I'd like to request ownership to maintain this report

Minecraft386882

Can confirm in 1.21.3 

Gavin Shurtz

sof

(Unassigned)

Confirmed

Gameplay

Normal

Mob behaviour

ender_dragon

20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, ..., 22w15a, 1.19.3, 24w40a, 1.21.3, 1.21.4

Retrieved