execute if score elevator_shaft map matches 0 if entity @p[x=19,y=19,z=-69,dx=4,dy=-1,dz=6] run scoreboard players set elevator_shaft map 1

# Falls and Death

execute if score elevator_shaft map matches 1 run scoreboard players set phone_light map 0
execute if score elevator_shaft map matches 1 run title @a times 0 99999999 0
execute if score elevator_shaft map matches 1 run title @a title "\uE001"
execute if score elevator_shaft map matches 1 run playsound scare2 master @a ~ ~ ~ 99999999999999
execute if score elevator_shaft map matches 5 run playsound minecraft:block.sniffer_egg.crack master @a ~ ~ ~ 99999999 1.5
execute if score elevator_shaft map matches 5 run playsound minecraft:entity.generic.big_fall master @a ~ ~ ~ 9999999999
execute if score elevator_shaft map matches 5 run playsound minecraft:entity.generic.small_fall master @a ~ ~ ~ 9999999999
execute if score elevator_shaft map matches 100 run scoreboard players set phone_light map 1
execute if score elevator_shaft map matches 100 run title @a times 0 0 20
execute if score elevator_shaft map matches 100 run title @a title "\uE001"
execute if score elevator_shaft map matches 100 run scoreboard players set elevator_shaft map 0

execute if score elevator_shaft map matches 2..100 run tp @p 23.7 35 -64.5 90 0

execute if score elevator_shaft map matches 1..100 run scoreboard players add elevator_shaft map 1