mojira.dev
MC-264698

The absorption effect is lost when reloading the world

The bug

If you obtain the absorption effect, and then exit and re-enter a singleplayer world, the absorption effect disappears. All of your gold hearts are lost even though you still had time left on the timer. This did not happen in 1.20.1.

To reproduce

  1. Eat a golden apple.

  2. Observe that you now have gold hearts.

  3. Verify that you have the effect by running the below command. You will see some NBT for the effect:

    23w31a

    /data get entity @s ActiveEffects[{Id:22}]

    23w32a+

    /data get entity @s active_effects[{id:"minecraft:absorption"}]
  4. Verify that you have absorption health by running the below command. You will see a non-zero number:

    /data get entity @s AbsorptionAmount
  5. Pause the game. Click "Save and Quit to Title".

  6. Re-open the world.

  7. Observe that your gold hearts are missing. ❌

  8. Verify that the effect is gone by running the below command. You will see red text:

    23w31a

    /data get entity @s ActiveEffects[{Id:22}]

    Result: "Found no elements matching ActiveEffects[{Id:22}]"

    23w32a+

    /data get entity @s active_effects[{id:"minecraft:absorption"}]

    Result: "Found no elements matching active_effects"

  9. Verify that your absorption health is gone by running the below command. You will see the number zero:

    /data get entity @s AbsorptionAmount

Expected behavior

The absorption effect is retained when the world is closed and re-opened.

Observed behavior

The absorption effect is lost.

Linked issues

Attachments

Comments 2

I have not tested this in multiplayer.

The absorption effect is retained when going through a nether portal or the stronghold portal to the end. (All effects are lost when going through the end exit portal due to MC-6431.)

pine1needle

mattiasselin

Confirmed

Platform

Important

Player

absorption

23w31a, 23w33a

23w35a

Retrieved