The bug
If you apply the health boost effect and apply it again, the hearts you gain will reset.
How to reproduce
Run this command:
/effect give @s minecraft:health_boost 10000 1
Wait a little for having more than 20 health points (1 health bar)
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.
Linked issues
is duplicated by 9
relates to 2
Attachments
Comments 36
Is this still a concern in the latest Minecraft version 14w30c? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
@unknown Yes, this was fixed at the same time as [MC-182497] Absorption can be permanently retained - Jira (mojang.com) . Somehow the closing of this bug fell through. Thanks for bringing it to our attention!
Confirmed.