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:
- Regenerate to full 20 HP.
- Use /scoreboard objectives add hp health and /scoreboard objectives setdisplay sidebar hp to see a scoreboard displaying true health.
- Use /attribute @s minecraft:generic.max_health base set 10.
- Notice how your HP stays the same - 20.
- Take damage. Notice how HP changes to 10.
2020-06-04, 11:19 PM
2023-08-04, 12:10 PM
2020-06-04, 11:28 PM
0
1
-