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

Commands inaccurately claim that applying a potion effect of a lower level (and higher duration) fails if the target already has a higher level of that effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w09a, 20w10a, 20w11a, 20w14a, 20w15a, 20w16a, 20w17a, 20w19a, 20w20a, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16.1, 20w27a, 20w29a, 1.16.2 Pre-release 2, 1.16.2, 1.16.4 Release Candidate 1, 1.16.4, 20w48a, 21w03a, 21w13a, 21w20a, 1.17, 1.17.1, 21w39a, 1.18 Pre-release 2, 1.18, 1.18.1, 1.18.2, 22w12a, 1.19, 1.19.2, 1.19.3, 23w05a, 1.20.1, 23w31a
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      The bug

      If you use commands to apply a lower level effect after a higher level of the same effect has already been applied, red text will appear that claims that the lower level effect wasn’t applied. However, the lower level effect actually was applied. Before 1.15.2, the red text was accurate because different levels of potion effects used to overwrite each other and lower levels couldn’t overwrite higher levels. However, now that MC-1541 has been fixed, the red text is inaccurate.

      To reproduce

      /effect give @p strength 20 1
      /effect give @p strength 180

      Red text appears that says “Unable to apply this effect (target is either immune to effects, or has something stronger)”. Wait for the 20 seconds of strength 2 to end. You now have strength 1, which means that the text was wrong.

        1. MC-169964.mp4
          3.38 MB
        2. MC-169964.png
          MC-169964.png
          1.00 MB

            Unassigned Unassigned
            pine1needle [Helper] pine1needle
            Votes:
            16 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              CHK: