execute if score slender_appear1 scenes matches 0 if entity @p[x=26,y=43,z=-106,distance=..2] run scoreboard players set slender_appear1 scenes 1



execute if score slender_appear1 scenes matches 25 run playsound minecraft:entity.lightning_bolt.thunder master @a 46 44 -104 999999
execute if score slender_appear1 scenes matches 30 run playsound minecraft:entity.lightning_bolt.thunder master @a 46 44 -104 999999 1.5
execute if score slender_appear1 scenes matches 30 run effect give @p night_vision 999 1 true
execute if score slender_appear1 scenes matches 30 run data merge entity @e[type=item_display,tag=slenderman,limit=1] {item:{id:"minecraft:coal",Count:1b,tag:{CustomModelData:1}}}
execute if score slender_appear1 scenes matches 30 run fill 46 46 -106 46 44 -82 magma_block replace black_wool

execute if score slender_appear1 scenes matches 35 run fill 46 46 -106 46 44 -82 black_wool replace magma_block
execute if score slender_appear1 scenes matches 35 run effect clear @p night_vision
execute if score slender_appear1 scenes matches 35 run data merge entity @e[type=item_display,tag=slenderman,limit=1] {item:{id:"minecraft:air",Count:1b}}

execute if score slender_appear1 scenes matches 1 run scoreboard players set photocopier ambient 0
execute if score slender_appear1 scenes matches 1 run stopsound @a master photocopier
execute if score slender_appear1 scenes matches 1 run playsound minecraft:photocopier_end master @a 26 43 -101 1


execute if score slender_appear1 scenes matches 1..45 run scoreboard players add slender_appear1 scenes 1