The bug
If you eat an enchanted golden apple, use up all of your golden absorption hearts, and then try to get more gold hearts by eating a regular golden apple, the gold hearts from the regular golden apple will not be applied until after the duration of the absorption effect from the enchanted golden apple has run out. While the timer for the enchanted golden apple's absorption effect is ticking down, the timer for the regular golden apple's absorption effect is also ticking down, even though you do not currently have the gold hearts from the regular golden apple. This means that there is a severe delay between eating the regular golden apple and receiving the gold hearts, and that when you do finally receive the gold hearts, the duration is almost over.
To reproduce
Eat an enchanted golden apple.
Take damage to use up all of your gold hearts.
Eat a regular golden apple.
Observe that you don't have any gold hearts, even though you just ate a regular golden apple. ❌
Open your inventory and watch the timer for Absorption IV (from the enchanted golden apple) tick down.
When it reaches 0:00, it is replaced by Absorption I, and you finally get the 2 gold hearts from the regular golden apple, but the duration of the Absorption I is almost over. ❌
History
I tested this bug in 1.12.2, 1.13, 1.15.1, 1.15.2, and 1.16.3.
In 1.12.2 (and presumably older versions), if you ate a regular golden apple after using up all of the gold hearts from an enchanted golden apple, it would (incorrectly) restore all 8 of the gold hearts from the enchanted golden apple. (This was the old version of MC-88694.)
In versions 1.13 to 1.15.1, if you ate a regular golden apple after using up all of the gold hearts from an enchanted golden apple, the absorption from the regular golden apple was never applied at all. (This was the original version of this bug report.)
In versions 1.15.2 to the present version, if you eat a regular golden apple after using up all of the gold hearts from an enchanted golden apple, the absorption from the regular golden apple is severely delayed and shortened. (This is the current version of this bug report.)
Extra information
Linked issues
is duplicated by 1
Attachments
Comments 10
Could I please have ownership of this report? In 1.16.3 the behavior is somewhat different than the report currently displays, and I would like to update the description.
Also, the "blocks" link to MC-88694 should be changed to "relates to".
Here are some commands that are useful for testing absorption bugs in modern versions.
To see information about the currently applied absorption effects:
/data get entity @p ActiveEffects[{Id:22b}]
To see how much absorption health the player currently has:
/data get entity @p AbsorptionAmount
Now that MC-202432 seems to be fixed in 23w31a, this doesn't seem to be the case anymore when you use all of your absorption hearts. However if you use an enchanted apple and remain with less than 2 golden hearts, using up a regular golden apple won't replenish the (2) hearts unless you consume it after the high amplifier absorption runs out (or you use all of your golden hearts). Still not sure if this new behavior is intended.
Indeed, the fix of MC-202432 has made MC-128682 have less of a bad effect, but not gaining any absorption from a regular golden apple if you currently have between 0 and 2 gold hearts left from the enchanted golden apple still feels like a problem.
I don't have time to edit this report and/or make a new report right now, but I will decide what to do at some point soon and then do it.
The only way i could think of fixing this is by dynamically changing the absorption amplifier based of the number of golden hearts left, but i'm not sure how viable that solution would be.
This will now be tracked at a new ticket: MC-264656.
Can confirm for 18w21b