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

Reducing max health using /attribute does not reduce current health

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 20w17a, 20w18a, 20w19a, 20w20b, 1.16 Pre-release 1, 1.16 Pre-release 2, 1.16 Release Candidate 1, 1.16, 1.16.1, 1.16.2 Pre-release 1, 1.16.4, 20w51a, 21w03a, 1.16.5, 21w06a, 21w15a, 1.17 Pre-release 1, 1.17, 1.17.1, 21w39a, 1.18.1, 1.19.2, 1.19.3 Release Candidate 3, 1.19.3, 23w03a, 1.19.4, 23w18a, 1.20.1
    • None
    • Confirmed
    • Commands
    • Low

      Summary:

      Using /attribute to change minecraft:generic.max_health base value to a value lower than the Health value does not reduce the Health value as would be expected.

      Repo Steps:

      Create a new world and run:

      /attribute @s minecraft:generic.max_health base set 1

      Expected Result:

      Only 1, half-filled heart container visible.

      Actual Result:

      Only 1, fully filled heart container visible.

      Verifying:

      Running the following will show a value of 20.0f:

      /data get entity @s Health

        1. MC-180001.mp4
          5.72 MB
        2. MC-180001.png
          MC-180001.png
          942 kB

            Unassigned Unassigned
            gerrybrano gerrybrano
            Votes:
            40 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: