execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run effect give @s[tag=ResistSpell2,tag=K,tag=!ResistReset] minecraft:resistance 60 0
execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run effect give @s[tag=ResistSpell2,tag=K,tag=!ResistReset,tag=ResistUpgrade2] minecraft:resistance 180 0
execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run effect give @s[tag=ResistSpell2,tag=K,tag=!ResistReset,tag=ResistUpgrade2] minecraft:absorption 180 0
execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run tellraw @s[tag=ResistSpell2,tag=!ResistReset] ["",{"text":"Resistance has been activated!","color":"green"}]
execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run tellraw @s[tag=ResistSpell2,tag=ResistReset] ["",{"text":"You have already used the Resistance spell today - You may use it again tomorrow.","color":"yellow"}]
execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run tag @s[tag=ResistSpell2,tag=K,tag=!ResistReset] add ResistReset
#scoreboard players set @s[] KyuSpells 0

tag @s remove KyuLatentResistSpell










###structures ver


execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run effect give @s[tag=ResistSpell2,tag=K,tag=!ResistReset] minecraft:resistance 180 0
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run effect give @s[tag=ResistSpell2,tag=K,tag=!ResistReset,tag=ResistUpgrade2] minecraft:resistance 300 0
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run effect give @s[tag=ResistSpell2,tag=K,tag=!ResistReset,tag=ResistUpgrade2] minecraft:absorption 300 0
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run tellraw @s[tag=ResistSpell2,tag=!ResistReset] ["",{"text":"Resistance has been activated!","color":"green"}]
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run tellraw @s[tag=ResistSpell2,tag=ResistReset] ["",{"text":"You have already used this spell today - You may use it again tomorrow.","color":"yellow"}]
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run tag @s[tag=ResistSpell2,tag=K,tag=!ResistReset] add ResistReset
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run tag @s remove KyuLatentResistSpell


#scoreboard players set @s[] KyuSpells 0