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

Absorption replenishes hearts even if effect isn't actually applied due to lower amplifier

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w37a, Minecraft 15w43b, Minecraft 15w43c, Minecraft 15w44a, Minecraft 15w47a, Minecraft 15w47c, Minecraft 1.9.4, Minecraft 1.10 Pre-Release 1, Minecraft 16w38a, Minecraft 1.12 Pre-Release 5, Minecraft 18w11a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Lost absorption hearts of a higher amplifier are regained when absoprtion with a lower amplifier (which should not affect the effect at all) is applied.
      This can for example be seen with an enchanted and a normal golden apple.

      Expected would be that the effect with the lower amplifier does not affect the effect or better that the absorption effect is removed once all absorption hearts are gone.

      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 lower amplifier
        /effect give @s minecraft:absorption 1000 0 true
        

      Code analysis

      Code analysis by [Mod] Marcono1234 can be found in this comment.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Palawarss Malek Jemni
              • Votes:
                11 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: