If you are standing in the exit portal when respawning the dragon and holding a totem, you will still die when the crystals explode. The totem will get used and the totem animation will glitch.
How to reproduce:
1. Go to the End
2. Kill the dragon
3. Hold a totem in your offhand
4. Go into survival mode
5. Respawn the dragon
6. Stand in the exit portal
Observed results:
The totem is used and you still die
Expected results:
The totem should be used and you should not die
Linked issues
is duplicated by 1
relates to 2
Attachments
Comments 4
Cause:
This bug might be caused because the end crystals may explode in a different priority. The first crystal to explode may cause your totem of undying you were holding to activate immediately.
The unintended part here is that other crystals affected after the first crystal may cause your character to die, possibly because damage immunity may have been ignored immediately after you use your totem or undying.
Can confirm in 1.21.2 Hotfix. Hard mode gives the best results, and make sure you are at low health first so the bug is easier to reproduce.
How to reproduce (improved steps):
Go in creative mode if you have not already.
Switch your difficulty to hard.
Take off all your armor if you are wearing any armor.
Remove any shields from your inventory if you have any shields in your inventory.
Construct an end portal and successfully activate it.
Go to the End using the portal you just built.
Disable the mob spawning game rule.
Run this command: /kill @e
Hold a totem in your offhand.
Go into survival mode.
Make sure you are at full health.
Run this command: /damage @p 19 self_destruct
Respawn the dragon using 4 ender crystals.
Before the dragon respawns, stand in a certain part of the exit portal. The brick blocks show you where you can stand in the portal. You do not need to replace any bedrock blocks.
[media]
The totem does not save you because the player does not have damage immunity after the totem activates, and there are 4 end crystals exploding. The first crystal makes you activate the totem, the second crystal kills you, and the third crystal destroys your items (MCPE-166987). You can reproduce this with TNT as well:
The totem activates after death