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

Fake death by MaxHealth attribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.8.7
    • None
    • Creative world, command blocks
    • Unconfirmed

      When the user holds any item with a MaxHealth attribute that decreases their health, sometimes when the player takes damage he 'dies'. However, when the player hits respawn, he will respawn in the exact same location, with the same inventory.

      How to recreate:
      1. Give the player any item / armorpiece with negative maxhealth attribute. Example: /give @p diamond_boots 1 0 {Unbreakable:1,AttributeModifiers:[

      {AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:-10,Operation:0,UUIDMost:76455,UUIDLeast:123467}

      ]}
      2. Put on the boots.
      3. Use this command: /effect @p instant_damage 1 0

      You will find that most of the time, when you execute the last command, the player will die, only to respawn in the exact same position after clicking 'respawn'.

            Unassigned Unassigned
            bananenbroek4 bananenbroek4
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: