Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-92633

Items reducing player health to 0 prevent player from respawning

    XMLWordPrintable

    Details

    • Confirmation Status:
      Unconfirmed

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: