execute store result score .random random run random value 1..3
stopsound @a record


execute if score .map map matches 1 if score .random random matches 1 run scoreboard players set .music music 3560
execute if score .map map matches 1 if score .random random matches 2 run scoreboard players set .music music 4420
execute if score .map map matches 1 if score .random random matches 3 run scoreboard players set .music music 2520

execute if score .map map matches 1 if score .random random matches 1 at @a run playsound minecraft:map11 record @a ~ ~ ~ 0.6
execute if score .map map matches 1 if score .random random matches 2 at @a run playsound minecraft:map12 record @a ~ ~ ~ 0.6
execute if score .map map matches 1 if score .random random matches 3 at @a run playsound minecraft:map13 record @a ~ ~ ~ 0.6


execute if score .map map matches 2 if score .random random matches 1 run scoreboard players set .music music 3340
execute if score .map map matches 2 if score .random random matches 2 run scoreboard players set .music music 3860
execute if score .map map matches 2 if score .random random matches 3 run scoreboard players set .music music 3580

execute if score .map map matches 2 if score .random random matches 1 at @a run playsound minecraft:map21 record @a ~ ~ ~ 0.6
execute if score .map map matches 2 if score .random random matches 2 at @a run playsound minecraft:map22 record @a ~ ~ ~ 0.6
execute if score .map map matches 2 if score .random random matches 3 at @a run playsound minecraft:map23 record @a ~ ~ ~ 0.6


execute if score .map map matches 3 if score .random random matches 1 run scoreboard players set .music music 2180
execute if score .map map matches 3 if score .random random matches 2 run scoreboard players set .music music 2700
execute if score .map map matches 3 if score .random random matches 3 run scoreboard players set .music music 2840

execute if score .map map matches 3 if score .random random matches 1 at @a run playsound minecraft:map31 record @a ~ ~ ~ 0.6
execute if score .map map matches 3 if score .random random matches 2 at @a run playsound minecraft:map32 record @a ~ ~ ~ 0.6
execute if score .map map matches 3 if score .random random matches 3 at @a run playsound minecraft:map33 record @a ~ ~ ~ 0.6


execute if score .map map matches 4 if score .random random matches 1 run scoreboard players set .music music 1900
execute if score .map map matches 4 if score .random random matches 2 run scoreboard players set .music music 2140
execute if score .map map matches 4 if score .random random matches 3 run scoreboard players set .music music 2500

execute if score .map map matches 4 if score .random random matches 1 at @a run playsound minecraft:map41 record @a ~ ~ ~ 0.6
execute if score .map map matches 4 if score .random random matches 2 at @a run playsound minecraft:map42 record @a ~ ~ ~ 0.6
execute if score .map map matches 4 if score .random random matches 3 at @a run playsound minecraft:map43 record @a ~ ~ ~ 0.6


execute if score .map map matches 5 if score .random random matches 1 run scoreboard players set .music music 6560
execute if score .map map matches 5 if score .random random matches 2 run scoreboard players set .music music 4260
execute if score .map map matches 5 if score .random random matches 3 run scoreboard players set .music music 4700

execute if score .map map matches 5 if score .random random matches 1 at @a run playsound minecraft:map51 record @a ~ ~ ~ 0.6
execute if score .map map matches 5 if score .random random matches 2 at @a run playsound minecraft:map52 record @a ~ ~ ~ 0.6
execute if score .map map matches 5 if score .random random matches 3 at @a run playsound minecraft:map53 record @a ~ ~ ~ 0.6

execute if score .map map matches 6 if score .random random matches 1 run scoreboard players set .music music 3640
execute if score .map map matches 6 if score .random random matches 2 run scoreboard players set .music music 2680
execute if score .map map matches 6 if score .random random matches 3 run scoreboard players set .music music 2680

execute if score .map map matches 6 if score .random random matches 1 at @a run playsound minecraft:map61 record @a ~ ~ ~ 0.6
execute if score .map map matches 6 if score .random random matches 2 at @a run playsound minecraft:map62 record @a ~ ~ ~ 0.6
execute if score .map map matches 6 if score .random random matches 3 at @a run playsound minecraft:map63 record @a ~ ~ ~ 0.6
