execute if entity @s[advancements={kiwi3:kusanagi_no_tsurugi_interaction=true}] unless entity @s[scores={kusanagi_cooldown=1..}] run function kiwi3:relics/kusanagi_no_tsurugi/kusanagi_no_tsurugi_ability
execute if entity @s[advancements={kiwi3:kusanagi_no_tsurugi_interaction_lc=true}] unless entity @s[scores={kusanagi_cooldown=1..}] run function kiwi3:relics/kusanagi_no_tsurugi/kusanagi_no_tsurugi_ability_lc
execute if entity @s[scores={kusanagi_cooldown=1..}] run scoreboard players operation @s kusanagi_cooldown_show = @s kusanagi_cooldown
execute if entity @s[scores={kusanagi_cooldown=1..}] run scoreboard players operation @s kusanagi_cooldown_show /= world LimitbreakValue20
execute if entity @s[scores={kusanagi_cooldown=1..}] run title @s actionbar [{"text": "Ability on Cooldown [ ","color": "red"},{"score": {"name": "@s","objective": "kusanagi_cooldown_show"},"color": "red"},{"text": "s ]","color": "red"}]
execute if entity @s[scores={kusanagi_cooldown=0}] run scoreboard players add @s kusanagi_cooldown 60

advancement revoke @s only kiwi3:kusanagi_no_tsurugi_interaction_lc
advancement revoke @s only kiwi3:kusanagi_no_tsurugi_interaction

function kiwi3:relics/kusanagi_no_tsurugi/kusanagi_no_tsurugi_cooldown