Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-264698

The absorption effect is lost when reloading the world

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w35a
    • 23w31a, 23w33a
    • Confirmed
    • Player
    • Important
    • Platform

      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.

            SystemInvecklare [Mojang] SystemInvecklare
            pine1needle [Helper] pine1needle
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: