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

MaxHealth attribute behaves wierd on armor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.9, Minecraft 1.9 Pre-Release 2
    • None
    • Windows 7
      Java 1.8.0_71 64bit
    • Unconfirmed

      When having two pieces of Armor with (negative) MaxHealth attribute, equiping one and then taking the other one into your Main-/Offhand slot and switching your Main-/Offhand item to something else makes the game ignore the (negative) MaxHealth attribute of the piece of armor your wearing.
      (Look at the healthbar in the screenshots)

      Command for recreation:

      /give @p minecraft:diamond_helmet 1 0 {AttributeModifiers:[

      {AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:-0.9,Operation:1,UUIDLeast:408588,UUIDMost:100271}

      ]}

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

              Created:
              Updated:
              Resolved: