execute if entity @s[nbt=!{Inventory:[{components:{"minecraft:custom_data":{money_timer:1}}}]}] run return run function ws:item/money_timer/notimer
scoreboard players operation @s money_timer.time_sec = @s money_timer.time
scoreboard players operation @s money_timer.time_sec /= .coef money_timer.time_sec
scoreboard players operation @s money_timer.time_min = @s money_timer.time
scoreboard players operation @s money_timer.time_min /= .coef money_timer.time_min
scoreboard players operation @s money_timer.time_sec_remove = @s money_timer.time_min
scoreboard players operation @s money_timer.time_sec_remove *= .coef money_timer.time_sec_remove
scoreboard players operation @s money_timer.time_sec -= @s money_timer.time_sec_remove
scoreboard players operation @s money_timer.time_hour = @s money_timer.time
scoreboard players operation @s money_timer.time_hour /= .coef money_timer.time_hour
scoreboard players operation @s money_timer.time_min_remove = @s money_timer.time_hour
scoreboard players operation @s money_timer.time_min_remove *= .coef money_timer.time_min_remove
scoreboard players operation @s money_timer.time_min -= @s money_timer.time_min_remove
title @s[scores={money_timer.time_sec=10..,money_timer.time_min=10..}] actionbar [{"score":{"name":"*","objective":"money_timer.time_hour"}},":",{"score":{"name":"*","objective":"money_timer.time_min"}},":",{"score":{"name":"*","objective":"money_timer.time_sec"}},{"color":"gray","text":" /// "},{"bold":true,"color":"dark_green","score":{"name":"*","objective":"money_timer.pay"}},{"bold":true,"color":"dark_green","text":"$"}]
title @s[scores={money_timer.time_sec=10..,money_timer.time_min=..9}] actionbar [{"score":{"name":"*","objective":"money_timer.time_hour"}},":0",{"score":{"name":"*","objective":"money_timer.time_min"}},":",{"score":{"name":"*","objective":"money_timer.time_sec"}},{"color":"gray","text":" /// "},{"bold":true,"color":"dark_green","score":{"name":"*","objective":"money_timer.pay"}},{"bold":true,"color":"dark_green","text":"$"}]
title @s[scores={money_timer.time_sec=..9,money_timer.time_min=10..}] actionbar [{"score":{"name":"*","objective":"money_timer.time_hour"}},":",{"score":{"name":"*","objective":"money_timer.time_min"}},":0",{"score":{"name":"*","objective":"money_timer.time_sec"}},{"color":"gray","text":" /// "},{"bold":true,"color":"dark_green","score":{"name":"*","objective":"money_timer.pay"}},{"bold":true,"color":"dark_green","text":"$"}]
title @s[scores={money_timer.time_sec=..9,money_timer.time_min=..9}] actionbar [{"score":{"name":"*","objective":"money_timer.time_hour"}},":0",{"score":{"name":"*","objective":"money_timer.time_min"}},":0",{"score":{"name":"*","objective":"money_timer.time_sec"}},{"color":"gray","text":" /// "},{"bold":true,"color":"dark_green","score":{"name":"*","objective":"money_timer.pay"}},{"bold":true,"color":"dark_green","text":"$"}]