execute if score @s leeway matches 1.. run return 0
function pctf:logic/game/actionbar/pause {ticks: 2}

scoreboard players set #20 temp 20
scoreboard players set #2 temp 2

scoreboard players operation #spell temp = @s spell_cooldown3
scoreboard players operation #spell temp /= #20 temp

scoreboard players operation #spell_dec temp = @s spell_cooldown3
scoreboard players operation #spell_dec temp %= #20 temp
scoreboard players operation #spell_dec temp /= #2 temp

title @s actionbar ["",{"score":{"name":"#spell","objective":"temp"},"bold":true,"color":"light_purple"},{"text":".","bold":true,"color":"light_purple"},{"score":{"name":"#spell_dec","objective":"temp"},"bold":true,"color":"light_purple"},{"text":"s","bold":true,"color":"light_purple"}]