mojira.dev
MC-88694

Lower absorption effect with different particle settings / visibility replenishes all hearts of higher amplifier effect

The bug

Lost absorption hearts of an absorption effect with high amplifier are regained when absoprtion with a lower amplifier (which should not affect the existing effect at all) and different particle settings (NBT tags Ambient or ShowParticles) or visibility (NBT tag ShowIcon) is applied.

Expected would be that either:

  • the effect with the lower amplifier does not affect the higher amplifier effect (while also considering MC-128682)

  • or (better?) that the absorption effect is removed once all absorption hearts are gone

Note: In 1.12.2 and older versions this also affected lower absorption effects with the same particle settings / visibility, see this comment. E.g. when eating a normal golden apple after absorption hearts from an enchanted golden apple had been used up.

How to reproduce

  1. Give yourself absoprtion with a high amplifier

    /effect give @s minecraft:absorption 1000 10 true
  2. Take damage and lose the absorption hearts

    /effect give @s minecraft:instant_damage 1 3 true
  3. Give yourself absoprtion with a low amplifier and a different particle visibility

    /effect give @s minecraft:absorption 1 0 false

    ❌ All absoprtion hearts of the high amplifier effect were replenished

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 27

Confirmed for 15w43b.

Confirmed for 15w43c.

Confirmed for 15w44a.

You can just change the affected versions instead of commenting confirmed versions.

17 more comments

Can confirm in 1.19.2.

This bug has now been replaced by another bug for golden apples+enchanted golden apples by the 1.15.2 feature of higher tier potion effects still letting lower tier potion effects come back when the higher tier ones run out.

So the bug is now that lower absorption levels are completely ignored if a higher absorption effect is still going (for example, when eating an enchanted golden apple, losing the extra 8 hearts, and then eating a regular golden apple, the regular golden apple's 2 heart absorption doesn't happen at all).

Please rewrite the bug report to focus on the new bug behavior, can confirm in 1.19.4 and 23w14a. EDIT: MC-128682 focuses on this behavior, so this report is now invalid and was fixed by 1.15.2 at least for golden apples.

The behavior seems to have changed in 23w31a, now that MC-202432 is fixed you need to take damage until you have less hearts than the absorption amplifier provides, and after you take the third step the golden hearts are stacked based on the new amplifier, instead of automatically replenishing all the hearts. I.e you do step 1, remain with 1 heart and do step 3 you'd have a total of 3 hearts (you can repeat step 3 to replenish all the hearts).

Since this behavior changed in 23w13a, this will now be tracked at a new ticket: MC-264657.

Malek Jemni

(Unassigned)

Confirmed

Low

Commands

absorption, amplifier, hearts

Minecraft 15w37a, Minecraft 15w43b, Minecraft 15w43c, Minecraft 15w44a, Minecraft 15w47a, ..., 22w14a, 1.19, 1.19.2, 1.19.3, 1.20.1

Retrieved