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

-19 Max Health becomes -18

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 16w15b, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a
    • Fix Version/s: None
    • Environment:
      Java 8
      Windows 8.1
    • Confirmation Status:
      Confirmed

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                BCNOFNeNaMg Adrian Deutscher-Bishop
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: