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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      Normal

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            pine1needle pine1needle
            Votes:
            10 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: