# repeat 2

execute if score bgm_loop b matches 1.. run scoreboard players remove bgm_loop b 1

execute if score bgm_loop b matches 302 run stopsound @a
# execute if score bgm_loop b matches 301 run music play c.bgm
execute if score bgm_loop b matches 301 run playsound c.bgm @a
execute if score bgm_loop b matches 1 run scoreboard players set bgm_loop b 307