scoreboard players remove #tv_static tv_cd 1
execute if score #tv_static tv_cd matches ..-1 run scoreboard players set #tv_static tv_cd 0

execute unless block 48 141 9 minecraft:orange_stained_glass run stopsound @a record mymap:static
execute unless block 48 141 9 minecraft:orange_stained_glass run scoreboard players set #tv_static tv_cd 0

function mapsound:tv_loop