I am trying to detect active effects on entities with execute as @e[nbt={active_effects:[{id:5b}]}] run say hi
, but it doesn't seem to detect any entities despite me having the strength effect (id 5
). I have also tried different combinations (e.g., using ActiveEffects
instead of active_effects
and capitalizing id
to Id
), but none of them work.
Whenever I search answers online, the results are always /execute as @a[nbt={ActiveEffects:[{Id:5b}]}] run say hi
, which also doesn't work. The problem seems to be coming from this part: {active_effects:[{id:5b}]}
. I am in version 1.19, and the datapack format is 10 (for 1.19 datapacks).
Could anyone please inform me if there were any recent updates to this part of the commands or if it is a problem with my software? (I am using Visual Studio Code to write this datapack.)