execute @s[tag=!on] ~ ~ ~ execute @p[r=3,scores={primarymagic=6,primarylevel=2..}] ~ ~ ~ scoreboard players add @s primaryexp 500
execute @s[tag=!on] ~ ~ ~ execute @p[r=3,scores={secondarymagic=6,secondarylevel=2..}] ~ ~ ~ scoreboard players add @s secondaryexp 500

execute @p[r=3,scores={primarymagic=6,primarylevel=2..}] ~ ~ ~ tag @e[type=vatonage:grassaura3,r=3] add on
execute @p[r=3,scores={secondarymagic=6,secondarylevel=2..}] ~ ~ ~ tag @e[type=vatonage:grassaura3,r=3] add on
execute @s[tag=!on] ~ ~ ~ tellraw @p {"rawtext":[{"text":"§cYou haven't unlocked this magic"}]}
execute @s[tag=!on] ~ ~ ~ replaceitem entity @p slot.weapon.mainhand 0 vatonage:empty_wand3
kill @s[tag=!on]

execute @s[scores={removedebris=1}] ~ ~ ~ playsound step.grass @a ~ ~ ~

scoreboard objectives add removedebris dummy removedebris
scoreboard players add @s removedebris 1
execute @s[scores={removedebris=19..}] ~ ~ ~ kill @s

execute @s[scores={removedebris=6}] ~ ~ ~ scoreboard players add @e[r=10,rm=2,tag=!magicpvp,tag=!grass2] poisoneffect 2
execute @s[scores={removedebris=5}] ~ ~ ~ tag @a[r=10,tag=magicpvp] add grass2
execute @s[scores={removedebris=5}] ~ ~ ~ tag @p[r=10,tag=!magicpvp] add grass2

execute @s[scores={removedebris=10..}] ~ ~ ~ fill ~-4 ~-4 ~-4 ~4 ~4 ~4 grass 0 replace dirt