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.
- Give yourself an item that reduces your health to 0
- Update your NBT data by for example using the following command
The death screen should appear but when you click "Respawn" nothing happens