scoreboard players operation #chest_temp math_temp = @s chest_timer

scoreboard players set #20 math_temp 20
scoreboard players set #2 math_temp 2

scoreboard players operation #chest math_temp = #chest_temp math_temp
scoreboard players operation #chest math_temp /= #20 math_temp
execute store result storage jm:temp input.current_chest_int int 1 run scoreboard players get #chest math_temp


scoreboard players operation #chest_dec math_temp = #chest_temp math_temp
scoreboard players operation #chest_dec math_temp %= #20 math_temp
scoreboard players operation #chest_dec math_temp /= #2 math_temp
execute store result storage jm:temp input.current_chest_dec int 1 run scoreboard players get #chest_dec math_temp

execute positioned ~ ~1 ~ as @n[distance=..0.3,tag=chest_text] run function fjam:map/game/chest/tier_timer_name_set with storage jm:temp input
