# Attempt to cast
execute if score @s cast matches 1 if score @s mana >= @s cast_cost at @s run function items:wand/0_cast/cast
execute if score @s cast matches 1.. run scoreboard players set @s cast 0
