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

Changing generic.max_health doesn't change current health

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16 Pre-release 1
    • None
    • Unconfirmed
    • (Unassigned)

      If you change minecraft:generic.max_health using /attribute command, it doesn't update your current HP.

      This is not a big problem for increasing health, since it will regenerate. However, if you lower your health, it stays the same until updating it via taking damage - it will then lower it to current max value, no matter how strong the hit was.

      How to reproduce:

      1. Regenerate to full 20 HP.
      2. Use /scoreboard objectives add hp health and /scoreboard objectives setdisplay sidebar hp to see a scoreboard displaying true health.
      3. Use /attribute @s minecraft:generic.max_health base set 10.
      4. Notice how your HP stays the same - 20.
      5. Take damage. Notice how HP changes to 10.

            Unassigned Unassigned
            grzesiek11 Grzesiek11
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: