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

Instant heal would kill your after lowering your max hp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 18w05a
    • None
    • Java 8, Windows 10.
    • Unconfirmed

      When you lower your max hp by holding an item, for example

      /give @p stone{AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"233",Slot:"mainhand",Operation:0,Amount:-10,UUIDMost:11,UUIDLeast:11}]} 1
      

      This time your hp is actually 20 unless you refresh it by taking damage or being heal.
      I was trying to refresh my hp by adding a instant heal effect.

      What I expected to happen was my hp was lowered to 10 and nothing else happened.

      What actually happened was things like I suddenly lose all of my hp and regained instantly, and "You died" screen displayed. When I click "respawn" button, nothing was happened.

      Steps to Reproduce:
      1. Ensure your hp is 20, and your game mode is survival or adventure.
      2. Execute this command and hold the given item.

      /give @p stone{AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"233",Slot:"mainhand",Operation:0,Amount:-10,UUIDMost:11,UUIDLeast:11}]} 1
      

      3. Execute another command to add effect.

      /effect give @p minecraft:instant_health 1 0
      

      4. Click the respawn button, then you will find nothing happened.

        1. player model glitch.png
          player model glitch.png
          148 kB
        2. 2.png
          2.png
          52 kB
        3. 1.png
          1.png
          40 kB

            Unassigned Unassigned
            K_bai Kong Bai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: