Relates to:
The bug
When you give yourself an item with AttributeModifiers that reduce your health to 0, you are unable to respawn. When pressing the respawn button nothing happens. This is very likely because the player has still 0 health.
How to reproduce
Give yourself an item that reduces your health to 0
Example command
/give @p dirt 1 0 {AttributeModifiers:[{Amount:-20d,AttributeName:"generic.maxHealth",Name:"Health Attribute",Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"mainhand"}]}Update your NBT data by for example using the following command
Example command
/effect @p instant_health
The death screen should appear but when you click "Respawn" nothing happens
This is weird because the first time you die, you are able to respawn back at your spawnpoint but when you respawn the second time and try to click the respawn button, it will not work despite even if putting your item somewhere else in your inventory. Quitting and entering your world again will fix this.