why isn't this command working?
I'm trying to make custom spells and this one summons lightning,
here are the commands in order:
command block 1:
Continue to help post/scoreboard objectives add WandActivate minecraft.used:minecraft.carrot_on_a_stick "WandActivate"
command block 2: /execute as @a[scores={WandActivate=1..},nbt={SelectedItem:{id:"minecraft:bow",tag:{Spell1:1b}}}] at @s anchored eyes run summon minecraft:lightning_bolt ^ ^-1 ^3
command block 3: scoreboard players remove @a[scores={WandActivate=1..}] WandActivate 1
when i right click it resets the score but doesn't summon the lightning and i don't know why