execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run execute if entity @e[name=DayQ,scores={WeatherSpell=1..}] run execute as @s[tag=WeatherSpell2,tag=K] run function zzzzdonotuse:spell/normalspells/clearweather2
execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run execute if entity @e[name=DayQ,scores={WeatherSpell=0}] run execute as @s[tag=K,tag=WeatherSpell2] run tellraw @s ["",{"text":"You have no charges of this spell left.","color":"yellow"}]
execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run scoreboard players set @s KyuSpells 0





##structures-only version


execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run execute as @s[tag=WeatherSpell2,level=5..] run weather clear
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run execute as @s[tag=WeatherSpell2,level=5..] run tellraw @s ["",{"text":"Weather cleared!","color":"aqua"}]
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run execute as @s[tag=WeatherSpell2,level=0..4] run tellraw @s ["",{"text":"You do not have the required xp to cast this.","color":"yellow"}]
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run xp add @s[tag=WeatherSpell2,level=5..] -55 points
#execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run scoreboard players set @s KyuSpells 0