mojira.dev
MC-128682

Absorption from regular golden apples is severely delayed and shortened if an enchanted golden apple was recently consumed

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

  1. Eat an enchanted golden apple.

  2. Take damage to use up all of your gold hearts.

  3. Eat a regular golden apple.

  4. Observe that you don't have any gold hearts, even though you just ate a regular golden apple. ❌

  5. Open your inventory and watch the timer for Absorption IV (from the enchanted golden apple) tick down.

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

  • The change in this bug from 1.15.1 to 1.15.2 was likely caused by the fix of MC-1541.

  • The underlying cause of the current version of this bug is MC-202432.

  • This bug has an adverse impact on PVP and UHCs.

Linked issues

Attachments

Comments 10

Can confirm for 18w21b

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

Changed reporter as requested. Original owner hasn't been active in over two years.

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

Could this report please be marked as related to MC-202432 and MC-182497?

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.

Roberto Smith

pine1needle

(Unassigned)

Confirmed

Player

absorption

Minecraft 18w16a, Minecraft 18w19b, Minecraft 18w20b, Minecraft 18w20c, Minecraft 18w21b, ..., 1.17.1, 1.19.2, 22w44a, 1.19.3, 1.20.1

Retrieved