u/FraidyFazbear

How do I do a /execute command, applying an effect if a player has a different one?

Hey, I'm not very good at commands and I'm trying to get this to work for my server. I have a few different iterations I tried, but none have worked and I want to know if anyone here knows:

/execute at @.a [nbt={active_effects:[{id:"minecraft:effect_1"}]}] run effect give @.a [nbt={active_effects:[{id:"minecraft:effect_1"}]}] minecraft:effect_2 1 0 true

/execute at @.e if entity @.s[nbt={ActiveEffects:[{Id:#effect1idnumber}]}] run effect give @.s minecraft:effect_2 1 0 true

  1. /execute if entity @.a[nbt={active_effects:[{id:"compound_v:nullified"}]}] run effect give @.s compound_v_tweaks:v_destabilization 3 0 true
reddit.com
u/FraidyFazbear — 8 hours ago