-
Bug
-
Resolution: Invalid
-
None
-
1.19.2
-
None
-
Unconfirmed
-
(Unassigned)
Trying to do command block work and Im trying to detect when theres an active effect (in this case slowness) on a player with a repeating command block. It does not work. It will always detect that the player(s) do not have the effect even when they do have it. I tested it by telling it to run the say hi afterwards and by putting a comparator next to the command block as i usually do for it to light up visually.
I do play on realms but i also did a new world to test this in single player and it still didnt work.
I have a lot of stuff on my world that uses this part of the command and I'm worried none of it works right now. So please fix this as it is extremely crucial to my minigames.
The command(s) are below.
/execute if entity @a[nbt={ActiveEffects:[
{Id:2b}]}] run say hi
- Used for when there is the effect on them or want it on them
/execute if entity @a[nbt=!{ActiveEffects:[
{Id:2b}]}] run say hi
- Used for when they dont have the effect or dont want it on them