execute at @s[tag=HorseSpell2,tag=!HorseReset,tag=!HorseUpgrade2] positioned ~ ~1 ~ run summon minecraft:horse ^ ^ ^1 {Variant:4,Attributes:[{Name:generic.movement_speed,Base:0.225},{Name:horse.jump_strength,Base:0.77}],Tame:1b,SaddleItem:{id:"minecraft:saddle",Count:1b},CustomName:"\"Kien\""}
execute at @s[tag=HorseSpell2,tag=!HorseReset,tag=HorseUpgrade2] positioned ~ ~1 ~ run summon minecraft:horse ^ ^ ^1 {Variant:4,Attributes:[{Name:generic.movement_speed,Base:0.285},{Name:horse.jump_strength,Base:0.88}],Tame:1b,SaddleItem:{id:"minecraft:saddle",Count:1b},CustomName:"\"Kien 2.0\""}
tellraw @s[tag=HorseSpell2,tag=HorseReset] ["",{"text":"You have already used this spell today - You may use it again tomorrow.","color":"yellow"}]



tellraw @s[tag=!HorseUpgrade2,tag=HorseSpell2,tag=!HorseReset,tag=!HorseSpawnedOnce] ["",{"text":"Horse charges left: 1","color":"yellow"}]
tellraw @s[tag=!HorseUpgrade2,tag=HorseSpell2,tag=!HorseReset,tag=HorseSpawnedOnce] ["",{"text":"Horse charges left: 0","color":"yellow"}]
tag @s[tag=!HorseUpgrade2,tag=HorseSpell2,tag=HorseSpawnedOnce] add HorseReset
tag @s[tag=!HorseUpgrade2,tag=HorseSpell2,tag=!HorseSpawnedOnce] add HorseSpawnedOnce



tellraw @s[tag=HorseUpgrade2,tag=HorseSpell2,tag=!HorseReset,tag=!HorseSpawnedOnce,tag=!HorseSpawnedTwice] ["",{"text":"Horse charges left: 2","color":"yellow"}]
tellraw @s[tag=HorseUpgrade2,tag=HorseSpell2,tag=!HorseReset,tag=HorseSpawnedOnce,tag=!HorseSpawnedTwice] ["",{"text":"Horse charges left: 1","color":"yellow"}]
tellraw @s[tag=HorseUpgrade2,tag=HorseSpell2,tag=!HorseReset,tag=HorseSpawnedOnce,tag=HorseSpawnedTwice] ["",{"text":"Horse charges left: 0","color":"yellow"}]
tag @s[tag=HorseUpgrade2,tag=HorseSpell2,tag=!HorseReset,tag=HorseSpawnedOnce,tag=HorseSpawnedTwice] add HorseReset
tag @s[tag=HorseUpgrade2,tag=HorseSpell2,tag=HorseSpawnedOnce] add HorseSpawnedTwice
tag @s[tag=HorseUpgrade2,tag=HorseSpell2,tag=!HorseSpawnedOnce] add HorseSpawnedOnce



scoreboard players set @s KyuSpells 0