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

-19 Max Health becomes -18

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 16w15b, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a
    • Java 8
      Windows 8.1
    • Confirmed

      If you have a custom item which gives you -19 Max Health your health will become 1 heart (2 health) when you die instead of 1/2 a heart (1 health).
      Use the command

      /give @p minecraft:diamond_chestplate 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"Test",Amount:-19.5,Operation:0,UUIDLeast:1l,UUIDMost:1l,Slot:"chest"}]}

      I have also found this works with any item giving/making you lose an odd amount of health (a.k.a. health where you get halves of hearts).

            Unassigned Unassigned
            BCNOFNeNaMg Adrian Deutscher-Bishop
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: