mojira.dev
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

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.

Related issues

Attachments

Comments

migrated
[media][media]
pine1needle

This report might be a duplicate of MC-169948. However, this report is much more detailed than MC-169948 and MC-169948 is trying to report two bugs in one ticket: MC-169964 and MC-169965.

pine1needle

Today I learned that despite the red text, the lower level effect actually is applied. This is evident if you follow the reproduction steps and then wait for the strength 2 to wear off (and then relog if MC-169965 is preventing you from seeing the true level of the effect you currently have). I’ll update the ticket accordingly.

pine1needle

If you reproduce this using command blocks, the command block will apply the lower level effect but will then claim that the command failed by not outputting a comparator signal.

Avoma

Can confirm in 21w03a.

migrated

Can confirm in 1.18

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2 and 22w12a.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

pine1needle

(Unassigned)

Confirmed

Platform

Normal

Commands

1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w09a, ..., 1.19.3, 23w05a, 1.20.1, 23w31a, 1.21.4

Retrieved