
execute if score ambient_thunder map matches 1 run playsound minecraft:entity.lightning_bolt.thunder master @a 46 44 -104 999999
execute if score ambient_thunder map matches 6 run effect give @p night_vision 999 1 true
execute if score ambient_thunder map matches 6 run fill 46 46 -106 46 44 -85 magma_block replace black_wool
execute if score ambient_thunder map matches 6 run fill 46 63 -106 46 62 -85 magma_block replace black_wool
execute if score ambient_thunder map matches 6 run fill -3 44 -82 -3 63 -65 magma_block replace black_wool

execute if score ambient_thunder map matches 10 run fill -3 44 -82 -3 63 -65 black_wool replace magma_block
execute if score ambient_thunder map matches 10 run fill 46 46 -106 46 44 -85 black_wool replace magma_block
execute if score ambient_thunder map matches 10 run fill 46 63 -106 46 62 -85 black_wool replace magma_block
execute if score ambient_thunder map matches 10 run effect clear @p night_vision




execute if score ambient_thunder map matches 1..10 run scoreboard players add ambient_thunder map 1