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

Health Boost completely reset if applied again

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w31a
    • Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w39a, Minecraft 13w39b, Minecraft 14w28b, Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 15w31b, Minecraft 15w44a, Minecraft 15w46a, Minecraft 15w47a, Minecraft 15w51b, Minecraft 1.9.4, Minecraft 1.10, Minecraft 16w38a, Minecraft 16w44a, Minecraft 1.12.2, Minecraft 1.13-pre3, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w11b, Minecraft 19w12a, Minecraft 1.14.3, 20w06a, 1.16.2, 1.16.4, 20w51a, 21w03a, 21w05b, 21w06a, 21w07a, 21w11a, 21w14a, 21w17a, 1.17, 1.17.1, 1.18.1, 1.18.2, 1.19, 1.19.2, 1.19.3, 23w05a, 1.19.4, 23w18a, 1.20 Release Candidate 1, 1.20, 1.20.1
    • Confirmed
    • Commands
    • Low

      The bug

      If you apply the health boost effect and apply it again, the hearts you gain will reset.

      How to reproduce

      1. Run this command:
        /effect give @s minecraft:health_boost 10000 1
        
      2. Wait a little for having more than 20 health points (1 health bar)
      3. Run this command:
        /effect give @s minecraft:health_boost 10000 2
        

      What it does

      The health is recalculated to have a maximum of 26 health points. If we have more than 20 health points, it resets to 20.

      What is expected

      We should keep the extra hearts over the max, since we got a greater health boost level.

      Note

      This is only tested with potion effects, and not items that have the Max Health attribute.

            SystemInvecklare [Mojang] SystemInvecklare
            qwerty23495 Matthew
            Votes:
            30 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: