mojira.dev
MC-92633

Items reducing player health to 0 prevent player from respawning

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

  1. 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"}]}
  2. 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

Linked issues

Comments 2

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.

Seems to be fixed for 15w49b

Marcono1234

(Unassigned)

Unconfirmed

AttributeModifiers, attribute, health, maxHealth, respawning

Minecraft 15w46a

Minecraft 15w49b

Retrieved