#toxic arrow
execute as @s[nbt={ActiveEffects:[{Id:32b,Amplifier:119b,Duration:1,ShowParticles:0b}]}] at @s run function proj:toxic_arrow

#lightning arrow	
execute as @s[nbt={ActiveEffects:[{Id:32b,Amplifier:116b,Duration:1,ShowParticles:0b}]}] at @s run function proj:lightning_arrow

#eldritch arrow
execute as @s[nbt={CustomPotionEffects:[{Id:32b,Amplifier:130b,Duration:1,ShowParticles:0b}]}] at @s run function proj:eldritch_arrow