This behavior was introduced in 26.1-pre-2.
When an ender dragon dies, it’s supposed to fly to the center of the world, above the exit portal, and start its death animation. However, since MC-306798 was fixed, it now immediately starts its death animation as soon as it dies, and flies to the center of the world while in its death animation. Depending on how far it is from the center of the world, this may also cause it to drop experience before reaching the exit portal, resulting in the experience orbs being scattered across the dragon’s trail to the portal instead of concentrated around it.
How to reproduce:
Go to the End.
Execute the following command:
/damage @n[type=minecraft:ender_dragon] 10000 minecraft:player_attack by @s
Expected result:
The ender dragon would fly to the exit portal before initiating its death animation.
Observed result:
The ender dragon initiates its death animation as soon as it dies, without waiting to reach the exit portal first.