mojira.dev
MC-105080

Ender Dragon is respawned if all Exit End Portal blocks are removed / legacy scanning is done for worlds with new dragon fight

The underlying issue is that legacy scanning happens every time even if a DragonFight NBT compound already exists.


If you kill the Ender Dragon in the end and then remove all the end portal frames from the portal, then relog, you will see a new bossbar for a new Ender Dragon. You can't target it with @e as it doesn't actually exist yet, but it will spawn when you move far enough from 0 0. Basically this means that a new dragon always spawns if the frames are removed, even if you never placed the end crystals right. This limits what creative players can do in the end, as there's always a portal located (and a dragon, if the portal got removed)

How to reproduce

  1. Open a creative world

  2. Go to the end dimension and defeat the Ender Dragon

  3. Break all the the end portal blocks

  4. Break all end gateways

  5. Exit the world and reload it
    ❌ You should see the Exit End Portal go back to how it was before the Ender Dragon was killed and the Ender Dragon's health bar appear at the top of the screen. Wait about a minute and the Ender Dragon will respawn.

Linked issues

MC-105458 Ender Dragon bossbar with no boss, after a while the dragon appears for no reason. MC-108896 Ender Dragon regenerates if I exit and re-enter game MC-146089 Reopening a world resets Ender Dragon's health MC-147159 The Ender Dragon regains its heath after you save and quit a world MC-149079 Ender Dragon health resets upon exiting and entering the world MC-150576 Dragon health reset after relogging MC-152411 Ender Dragon regenerated health after all crystals are broken MC-156916 Saving & quitting mid-boss battle MC-166951 Logging out in the End refreshes the Dragon's health MC-167778 Ender dragon heath replenishes if game is exited and reloaded MC-168877 Ender Dragon respawn glitch MC-169071 the ender dragon MC-175137 Ender Dragon sometimes resets health when respawning/reloading world MC-180326 Ender Dragon healed completely after I died and/or logged back in MC-181494 Ender Dragon regens to full health after logging out/in MC-181624 Disconnecting then Relogging into a world fully heals the Ender Dragon MC-182176 Enderdragon not remembering its health MC-186542 dragon ender life restarts when you die or exit the game. MC-187097 Ender dragon's health and postion resets when re-entering the end MC-192870 Ender Dragon regains all of it's health when exiting and coming back into the world. MC-195775 Ender Dragon health resets after leaving and rejoining singleplayer world MC-196729 Ender dragon hp bar resets when you logout MC-199750 End/ Portal problem MC-201308 Ender Dragon Heals to Full After Saving/Quitting and Dying MC-203470 Enderdragon resets health after you save and quit MC-206207 Ender Dragon Healing MC-208299 Ender Dragon respawns with full health after save and quit MC-210069 If you damage the ender dragon and then leave the game, the ender dragon has full lives again. MC-218895 Ender Dragon reverts to full health MC-226329 Ender dragon regaining health when you exit the game

Attachments

Comments

kumasasa

Any effects outside the valid range of the effect amplifiers are considerd as invalid, see MC-10755.

Littleman9Mew2

The effect is OPTIONAL. He's just stating it so it defeats the dragon FASTER. It's unrelated to the bug report ticket.
Post should be reedited to be more clear 😉 :
1. Open a creative world.
2. Go to the end dimension and defeat the Ender Dragon.
3. Break all the the end portal blocks. The torches, bedrock, and dragon egg can stay.
4. Exit the world and reload it. You should see the Exit End Portal go back to how it was before the Ender Dragon was killed and the Ender Dragon's health bar appear at the top of the screen. Wait about a minute and the Ender Dragon will respawn.

marcono1234

The problem might be that the legacy scanning happens every time even if a DragonFight NBT compound already exists

carpet0928

Confirmed for 18w44a.

Nixinova

MC-108896 just happened to me in 1.14.4-pre5

W_V

Do you know what is really weird? I am not affected by this. I tried to reproduce this so many times and I didn't manage to do it. This seems to be fixed for me in 1.15.1. Can you still reproduce this?

marcono1234

It still happens, but you also have to break all end gateways (added that to the description).

CalXee

When I followed the steps to reproduce I only got the dragon health bar, not the actual dragon. I am also unable to remove that boss bar or summon a new dragon using end crystals. If the dragon is still alive then the dragon would also appear. If I try to reproduce this but I summon in an end portal block then it would behave as normal, but the dragon's health would be at full for a second.

[media]

ThomasToSpace

I've ran into this issue today. The title and description of this bugreport is very unclear. I hope the mods can improve this ticket.

Improved title: Saving and re-opening the world respawns the dragon during the first fight

Affected versions: I've confirmed this for 1.15.2, 1.16 Pre-release 2

Video showing this issue: (in 1.16 Pre-release 2) https://www.youtube.com/watch?v=P0syIczLpOU

Steps to reproduce

  1. Have an end without End Gateways (for example, a 'fresh' one the first time you enter the End)

  2. Remove all the end crystals by punching or shooting them

  3. Damage the dragon

  4. Save the world

  5. Re-open the world

The dragon will now despawn and a new full-health dragon will spawn. This also happens if you do not damage the dragon, but the effect is harder to notice then.

user-c84db

Confirmed for 1.16.5

Jack Masin

(Unassigned)

Confirmed

Normal

Mob behaviour

ender_dragon, mojang_internal_1

Minecraft 1.10.2, Minecraft 16w32b, Minecraft 1.11, Minecraft 16w50a, Minecraft 17w15a, ..., 1.16.4, 20w46a, 20w51a, 1.16.5, 21w10a

21w19a

Retrieved