##by NOPEname

execute as @s[scores={scene=1..}] run gamemode spectator @s[gamemode=!spectator]
execute as @s[scores={scene=1..}] as @e[tag=intro_1,tag=!player] at @s run tp @s ^ ^ ^0.02
###execute as @s[scores={scene=1..}] as @e[tag=intro_1,tag=!player] at @s run tp @e[tag=intro_1,tag=!player] ~ ~ ~
execute as @s[scores={scene=1..}] as @e[tag=intro_1,tag=player] positioned as @e[tag=intro_1,tag=!player,limit=1] run tp @s ~ ~ ~ ~ ~-0.02
execute as @s[scores={scene=1..}] run tp @s @e[tag=intro_1,tag=player,limit=1]
execute as @s[scores={scene=1..}] at @s run tp @s ~ ~ ~ -32 ~


execute as @s[scores={scene=30..100}] run title @a actionbar {"text":"This is but one of the legends of which the people speak..."}
execute as @s[scores={scene=150..220}] run title @a actionbar {"text":"Long ago, there existed a kingdom where a golden power lay hidden."}
execute as @s[scores={scene=270..340}] run title @a actionbar {"text":"It was a prosperous land blessed with green forests, tall mountains, and peace."}
execute as @s[scores={scene=400..470}] run title @a actionbar {"text":"But one day, a man of great evil found the golden power and took it for himself..."}
execute as @s[scores={scene=530..600}] run title @a actionbar {"text":"With its strength at his command, he spread darkness across the kingdom."}
execute as @s[scores={scene=650..720}] run title @a actionbar {"text":"But then, when all hope had died, and the hour of doom seemed at hand..."}
execute as @s[scores={scene=770..890}] run title @a actionbar {"text":"...a young boy clothed in green appeared as if from nowhere."}
execute as @s[scores={scene=980..1050}] run title @a actionbar {"text":"Wielding the blade of evil's bane, he sealed the dark one away and gave the land light."}

execute as @s[scores={scene=1200..1270}] run title @a actionbar {"text":"This boy, who traveled through time to save the land, was known as the Hero of Time."}
execute as @s[scores={scene=1390..1460}] run title @a actionbar {"text":"The boy's tale was passed down through generations until it became legend..."}
execute as @s[scores={scene=1580..1650}] run title @a actionbar {"text":"But then, a day came when a fell wind began to blow across the kingdom."}
execute as @s[scores={scene=1770..1840}] run title @a actionbar {"text":"The great evil that all thought had been forever sealed away by the hero..."}
execute as @s[scores={scene=1960..2030}] run title @a actionbar {"text":"...once again crept forth from the depths of the earth, eager to resume its dark designs."}
execute as @s[scores={scene=2150..2220}] run title @a actionbar {"text":"The people believed that the Hero of Time would again come to save them."}
execute as @s[scores={scene=2370..2440}] run title @a actionbar {"text":"But the hero did not appear."}

###execute as @s[scores={scene=2250}] run title @a actionbar {"text":"Faced by an onslaught of evil, the people could do nothing but appeal to the gods."}
###execute as @s[scores={scene=2400}] run title @a actionbar {"text":"In their last hour, as doom drew nigh, they left their future in the hands of fate."}
###execute as @s[scores={scene=2550}] run title @a actionbar {"text":"What became of that kingdom? None remain who know."}


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


#490
#770
#1700
#2480/2750
