execute as @e[tag=treadmill.activator,type=interaction] if data entity @s interaction run function ws:misc/gym/treadmilltagplayer
function ws:misc/gym/treadmillready
execute as @e[tag=treadmill.timer,type=text_display] run function ws:misc/gym/treadmilldisplay
execute as @e[tag=treadmill.controller,type=marker] run function ws:misc/gym/treadmill with entity @s data