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

Lower absorption effect with different particle settings / visibility replenishes all hearts of higher amplifier effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 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, 1.15.2, 20w11a, 20w18a, 1.16.1, 20w30a, 1.16.2, 20w46a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a, 22w14a, 1.19, 1.19.2, 1.19.3, 1.20.1
    • Confirmed
    • Commands
    • Low

      The bug

      Lost absorption hearts of an absorption effect with high amplifier are regained when absoprtion with a lower amplifier (which should not affect the existing effect at all) and different particle settings (NBT tags Ambient or ShowParticles) or visibility (NBT tag ShowIcon) is applied.

      Expected would be that either:

      • the effect with the lower amplifier does not affect the higher amplifier effect (while also considering MC-128682)
      • or (better?) that the absorption effect is removed once all absorption hearts are gone

      Note: In 1.12.2 and older versions this also affected lower absorption effects with the same particle settings / visibility, see this comment. E.g. when eating a normal golden apple after absorption hearts from an enchanted golden apple had been used up.

      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 low amplifier and a different particle visibility
        /effect give @s minecraft:absorption 1 0 false
        

        All absoprtion hearts of the high amplifier effect were replenished

      Code analysis

      Code analysis by marcono1234 can be found in this comment.

        1. MC-88694.mp4
          5.14 MB
          [Mod] Avoma

            Unassigned Unassigned
            Palawarss Malek Jemni
            Votes:
            22 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: