# Lights flashing
    execute if score mass_effect map matches 1 if score mass_effect_ticks map matches 1 run scoreboard players set phone_light map 0
    execute if score mass_effect map matches 1 if score mass_effect_ticks map matches 4 run scoreboard players set phone_light map 1
    execute if score mass_effect map matches 1 if score mass_effect_ticks map matches 8 run scoreboard players set phone_light map 0
    execute if score mass_effect map matches 1 if score mass_effect_ticks map matches 12 run scoreboard players set phone_light map 1
    execute if score mass_effect map matches 1 if score mass_effect_ticks map matches 14.. run scoreboard players set mass_effect_ticks map 1


# Lights flashing intense
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 1 run scoreboard players set phone_light map 0
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 2 run scoreboard players set phone_light map 1
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 3 run scoreboard players set phone_light map 0
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 4 run scoreboard players set phone_light map 1
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 5 run scoreboard players set phone_light map 0
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 6 run scoreboard players set phone_light map 1
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 7 run scoreboard players set phone_light map 0
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 8 run scoreboard players set phone_light map 1
    execute if score mass_effect map matches 2 if score mass_effect_ticks map matches 8.. run scoreboard players set mass_effect_ticks map 1

    execute if score mass_effect_ticks map matches 0..23 run scoreboard players add mass_effect_ticks map 1

# Mass Catch
    execute if score mass map matches 1 if entity @p[x=9,y=12,z=-17,distance=..2] run scoreboard players set mass_catch map 1

    execute if score mass_catch map matches 1 run scoreboard players set mass map 2
    execute if score mass_catch map matches 1 run scoreboard players set phone_light map 0
    execute if score mass_catch map matches 1 run scoreboard players set mass_effect map 3
    execute if score mass_catch map matches 1 run scoreboard players set hallu ambient 1
    execute if score mass_catch map matches 1 run scoreboard players set ambient map 0
    execute if score mass_catch map matches 30 run scoreboard players set hallu ambient 11
    execute if score mass_catch map matches 60 run scoreboard players set hallu ambient 0
    execute if score mass_catch map matches 60 run title @a title ""
    execute if score mass_catch map matches 60 run title @a subtitle "\uE001"
    execute if score mass_catch map matches 60 run function slender:reset_fuse_section

    execute if score mass_catch map matches 120 run scoreboard players set phone_light map 1
    execute if score mass_catch map matches 120 run title @a times 0 0 40
    execute if score mass_catch map matches 120 run title @a title ""
    execute if score mass_catch map matches 120 run title @a subtitle "\uE001"
    execute if score mass_catch map matches 160 run scoreboard players set ambient map 1
    execute if score mass_catch map matches 160 run scoreboard players set mass_effect map 0
    execute if score mass_catch map matches 160 run scoreboard players set mass map 1
    execute if score mass_catch map matches 160 run scoreboard players set hallu ambient 20
    execute if score mass_catch map matches 160 run scoreboard players set vents2 ambient 999
    execute if score mass_catch map matches 160 run scoreboard players set vents3 ambient 0

    execute if score mass_catch map matches 2..120 run tp @p 23 12 -47 0 0
    execute if score mass_catch map matches 1..160 run scoreboard players add mass_catch map 1

# Hallucinations

    execute if score mass_effect map matches 3 if score hallu ambient matches 1..7 run title @a times 0 9999 0
    execute if score mass_effect map matches 3 if score hallu ambient matches 1 run title @a title "\uE010"
    execute if score mass_effect map matches 3 if score hallu ambient matches 1..7 run playsound hallu master @a ~ ~ ~ 99999999 1
    execute if score mass_effect map matches 3 if score hallu ambient matches 1 run title @a subtitle "\uE001"
    execute if score mass_effect map matches 3 if score hallu ambient matches 2 run title @a title ""
    execute if score mass_effect map matches 3 if score hallu ambient matches 3 run title @a title "\uE011"
    execute if score mass_effect map matches 3 if score hallu ambient matches 4 run title @a title ""
    execute if score mass_effect map matches 3 if score hallu ambient matches 5 run title @a title "\uE012"
    execute if score mass_effect map matches 3 if score hallu ambient matches 6 run title @a title ""
    execute if score mass_effect map matches 3 if score hallu ambient matches 1..6 run scoreboard players add hallu ambient 1
    execute if score mass_effect map matches 3 if score hallu ambient matches 7 run scoreboard players set hallu ambient 1

    execute if score mass_effect map matches 3 if score hallu ambient matches 10..13 run title @a times 0 9999 0
    execute if score mass_effect map matches 3 if score hallu ambient matches 11..13 run playsound hallu master @a ~ ~ ~ 99999999 1
    execute if score mass_effect map matches 3 if score hallu ambient matches 11 run title @a title "\uE014"
    execute if score mass_effect map matches 3 if score hallu ambient matches 11 run title @a subtitle "\uE001"
    execute if score mass_effect map matches 3 if score hallu ambient matches 12 run title @a title ""
    execute if score mass_effect map matches 3 if score hallu ambient matches 10..12 run scoreboard players add hallu ambient 1
    execute if score mass_effect map matches 3 if score hallu ambient matches 13 run scoreboard players set hallu ambient 10

    execute if score mass_effect map matches 0 if score hallu ambient matches 20..28 run title @a times 0 0 0
    execute if score mass_effect map matches 1 if score hallu ambient matches 20..28 run title @a times 10 9999 0
    execute if score mass_effect map matches 1 if score hallu ambient matches 20..28 run playsound hallu master @a 9 12 -18 0.1 0.5
    execute if score mass_effect map matches 2 if score hallu ambient matches 20..28 run title @a times 2 9999 0
    execute if score mass_effect map matches 2 if score hallu ambient matches 20..28 run playsound hallu master @a 9 12 -18 0.5 0
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 20 run title @a title "\uE010"
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 21 run title @a subtitle ""
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 22 run title @a title ""
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 23 run title @a title "\uE013"
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 25 run title @a title ""
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 26 run title @a title "\uE015"
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 28 run title @a title ""
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 20..28 run scoreboard players add hallu ambient 1
    execute if score mass_effect map matches 1..2 if score hallu ambient matches 28 run scoreboard players set hallu ambient 20


    execute if score mass map matches 1 if entity @p[x=9,y=12,z=-15,distance=..2] run scoreboard players set mass_effect map 2
    execute if score mass map matches 1 if entity @p[x=9,y=12,z=-10,distance=..2] run scoreboard players set mass_effect map 1
    execute if score mass map matches 1 if entity @p[x=9,y=12,z=-8,distance=..2] run scoreboard players set mass_effect map 0
    execute if score mass map matches 1 if entity @p[x=9,y=12,z=-8,distance=..2] run title @a times 0 0 0
    execute if score mass map matches 1 if entity @p[x=9,y=12,z=-8,distance=..2] run scoreboard players set phone_light map 1