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
is duplicated by
Attachments
Comments



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.

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.
Can confirm in 21w03a.

Can confirm in 1.18
Can confirm in 1.18.1.
Can confirm in 1.18.2 and 22w12a.
Can confirm in 1.19.
Can confirm in 1.19.2.