Mojira Archive
MC-187386

Changing generic.max_health doesn't change current health

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.

Duplicate

Grzesiek11

2020-06-04, 11:19 PM

2023-08-04, 12:10 PM

2020-06-04, 11:28 PM

0

1

Unconfirmed

(Unassigned)

1.16 Pre-release 1

-