mojira.dev
MC-25088

Health Boost completely reset if applied again

The bug

If you apply the health boost effect and apply it again, the hearts you gain will reset.

How to reproduce

  1. Run this command:

    /effect give @s minecraft:health_boost 10000 1
  2. Wait a little for having more than 20 health points (1 health bar)

  3. 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

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.

This is still a concern in the latest snapshot 15w43c.

26 more comments

Can confirm in 1.18.2.

Can confirm in 1.19.

Seems to be fixed in 23w31a.

@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!

Yoann Petremann

qwerty23495

mattiasselin

Confirmed

Low

Commands

health_boost

Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w39a, Minecraft 13w39b, Minecraft 14w28b, ..., 1.19.4, 23w18a, 1.20 Release Candidate 1, 1.20, 1.20.1

23w31a

Retrieved