##by NOPEname

execute as @s[scores={scene=1..380}] run tp @a -16 32 10012
effect give @s[scores={scene=1}] regeneration 1 250 true


execute as @s[scores={scene=30}] run tellraw @a [{"text":"\n\n\n\n\n\n\n\n\n["},{"text":"???","color":"green"},{"text":"]: "},{"nbt":"Items[0].tag.pn[0]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[1]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[2]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[3]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[4]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[5]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[6]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[7]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[8]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[9]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[10]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[11]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[12]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[13]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[14]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[15]","block":"0 1 0","color":"green"},{"text":"..."}]
execute as @s[scores={scene=180}] run tellraw @a [{"text":"\n\n\n\n\n\n\n\n\n["},{"text":"???","color":"green"},{"text":"]: Wake up!"}]
execute as @s[scores={scene=330}] run tellraw @a [{"text":"\n\n\n\n\n\n\n\n\n["},{"text":"???","color":"green"},{"text":"]: You have to find a way back home, "},{"nbt":"Items[0].tag.pn[0]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[1]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[2]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[3]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[4]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[5]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[6]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[7]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[8]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[9]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[10]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[11]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[12]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[13]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[14]","block":"0 1 0","color":"green"},{"nbt":"Items[0].tag.pn[15]","block":"0 1 0","color":"green"},{"text":"!"}]

execute as @s[scores={scene=380}] run effect clear @s minecraft:blindness
execute as @s[scores={scene=380}] run setblock -16 33 10012 minecraft:air
execute as @s[scores={scene=480}] run title @a times 30 90 30
execute as @s[scores={scene=480}] run title @a title {"text":"Episode 1","underlined":"true"}
execute as @s[scores={scene=480}] run title @a subtitle {"text":"The Cave"}


scoreboard players add @s scene 1
execute as @s[scores={scene=481..}] run function event:scene/end/intro_2

