execute if score encounter1 scenes matches 0 if entity @p[x=18,y=61,z=-106,distance=..2] run scoreboard players add encounter1 scenes 1

execute if score encounter1 scenes matches 1 run summon marker 20 61 -91 {NoGravity:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["laura"],Rotation:[-90F,0F]}
execute if score encounter1 scenes matches 1 as @e[tag=laura] run function animated_java:laura/summon
execute if score encounter1 scenes matches 1 run scoreboard players set footsteps map 1
execute if score encounter1 scenes matches 1 run playsound minecraft:entity.zombie.attack_wooden_door master @a 19 61 -87 1.5 1
execute if score encounter1 scenes matches 1 run playsound bgm4 master @a 19 61 -87 999999999999999999
execute if score encounter1 scenes matches 1..60 as @e[tag=laura] at @s run tp @s ~0.4 ~ ~
execute if score encounter1 scenes matches 60 as @e[tag=laura] at @s run tp @s ~0.14 ~ ~
execute if score encounter1 scenes matches 60 run execute as @e[tag=aj.laura.root] run function animated_java:laura/animations/head_punching/play
execute if score encounter1 scenes matches 60 run scoreboard players set head_hit map 1
execute if score encounter1 scenes matches 60 run scoreboard players set footsteps map 0


execute if score encounter1 scenes matches 60..180 if entity @p[x=43,y=61,z=-91,distance=..6] run scoreboard players set encounter1 scenes 200


execute if score encounter1 scenes matches 200 run scoreboard players set head_hit map 0
execute if score encounter1 scenes matches 200 run execute as @e[tag=aj.laura.root] run function animated_java:laura/animations/head_punching/stop
execute if score encounter1 scenes matches 200 as @e[tag=laura] at @s run tp @s ~ ~ ~ ~-90 ~
execute if score encounter1 scenes matches 200 run execute as @e[tag=aj.laura.root] run function animated_java:laura/animations/crazy/play

execute if score encounter1 scenes matches 210 as @e[tag=laura] at @s run playsound minecraft:head_hit master @a ~ ~ ~ 1
execute if score encounter1 scenes matches 210 as @e[tag=laura] at @s run playsound minecraft:entity.generic.big_fall master @a ~ ~ ~ 1

execute if score encounter1 scenes matches 218 as @e[tag=laura] at @s run playsound minecraft:head_hit master @a ~ ~ ~ 1
execute if score encounter1 scenes matches 218 as @e[tag=laura] at @s run playsound minecraft:entity.generic.big_fall master @a ~ ~ ~ 1

execute if score encounter1 scenes matches 230 as @e[tag=laura] at @s run playsound minecraft:head_hit master @a ~ ~ ~ 1
execute if score encounter1 scenes matches 230 as @e[tag=laura] at @s run playsound minecraft:entity.generic.big_fall master @a ~ ~ ~ 1

execute if score encounter1 scenes matches 245 as @e[tag=laura] at @s run playsound minecraft:entity.generic.big_fall master @a ~ ~ ~ 1
execute if score encounter1 scenes matches 245 as @e[tag=laura] at @s run playsound minecraft:entity.generic.small_fall master @a ~ ~ ~ 1 1

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

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




execute if score encounter1 scenes matches 251 if entity @p[x=43,y=61,z=-91,distance=..2] run scoreboard players set encounter1 scenes 260


execute if score encounter1 scenes matches 260 as @p at @s run summon marker ~ ~ ~ {OnGround:1b,NoGravity:1b,Silent:1b,Invulnerable:1b,CustomNameVisible:1b,Tags:["pov_camera"]} 
execute if score encounter1 scenes matches 260..500 as @e[tag=pov_camera] at @s run tp @a ~ ~ ~

execute if score encounter1 scenes matches 260 run playsound dialogy_fred3 master @a ~ ~ ~ 999999999
execute if score encounter1 scenes matches 260 run title @a actionbar {"text":"Oh my god! Laura!"}
execute if score encounter1 scenes matches 300 run title @a actionbar {"text":"What happend to you?!"}

execute if score encounter1 scenes matches 340 run playsound dialogy_fred4 master @a ~ ~ ~ 999999999
execute if score encounter1 scenes matches 340 run title @a actionbar {"text":"I have to call someone quickly!"}

execute if score encounter1 scenes matches 400 run title @a title "\uE001"
execute if score encounter1 scenes matches 400 run title @a times 20 999 0

execute if score encounter1 scenes matches 550 run title @a title "\uE001"
execute if score encounter1 scenes matches 550 run title @a times 0 0 20
execute if score encounter1 scenes matches 560 run playsound dialogy_fred5 master @a ~ ~ ~ 999999999
execute if score encounter1 scenes matches 560 run title @a actionbar {"text":"No signal? How?"}

execute if score encounter1 scenes matches 620 run kill @e[tag=pov_camera]

execute if score encounter1 scenes matches 1..60 run scoreboard players add encounter1 scenes 1
execute if score encounter1 scenes matches 200..250 run scoreboard players add encounter1 scenes 1
execute if score encounter1 scenes matches 260..620 run scoreboard players add encounter1 scenes 1


