Mojira Archive
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

Fixed

Marcono1234

2015-11-13, 07:37 PM

2017-10-11, 09:46 PM

2015-12-03, 11:12 PM

1

2

Unconfirmed

AttributeModifiers, attribute, health, maxHealth, respawning

Minecraft 15w46a

Minecraft 15w49b