scoreboard players add ambience ambience 1
execute if score ambience ambience matches 8000.. at @r run function backrooms:soundevent
scoreboard players add ambience buzz 1
execute if score ambience buzz matches 1000.. in minecraft:overworld run playsound minecraft:custom.hum4 ambient @p[distance=0..] ~ ~ ~ 10000 0.5
execute if score ambience buzz matches 1000.. run scoreboard players set ambience buzz 0