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

Health Boost amplifier 255 interacts strangely with /attribute command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19
    • None
    • Unconfirmed
    • (Unassigned)

      To recreate:

      • /effect give @s minecraft:health_boost 1000000 255 true
      • /attribute @s minecraft:generic.max_health modifier add 0-0-0-0-1 name -25 add
      • /effect give @s minecraft:wither 1 1 true

      Note: This should remove 25 health points but instead only removes 5. Health Boost amplifier 250 also gives the same amount of health as amplifier 255 (1024 health points), but works fine. It seems that the /attribute command takes the extra 5 (amplifier) * 4 (Health Boost hearts) health into account, even though the hearts aren't actually there. In summary, the /attribute command thinks that the player has 1044 health points when given Health Boost with an amplifier of 255.

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

              Created:
              Updated:
              Resolved: