title @a[scores={treadmill.ready=60}] title "3"
tellraw @a[scores={treadmill.ready=60}] [{"translate":"gym.treadmill.runfor","color":"white"},{"score":{"name":"*","objective":"treadmill.level"},"color":"green"},{"text":"0","color":"green"},{"translate":"gym.treadmill.seconds","color":"white"},{"translate":"gym.treadmill.leave","color":"white"}]
execute as @a[scores={treadmill.ready=60}] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 1 0
title @a[scores={treadmill.ready=40}] title "2"
execute as @a[scores={treadmill.ready=40}] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 1 0
title @a[scores={treadmill.ready=20}] title "1"
execute as @a[scores={treadmill.ready=20}] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 1 0
title @a[scores={treadmill.ready=0}] title "GO!"
execute as @a[scores={treadmill.ready=0}] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 1 1
scoreboard players remove @a[scores={treadmill.ready=0..}] treadmill.ready 1