# © Spark Universe, 2023
# authors: destruc7i0n
# description: prepare an "instance", run as tutorial_main
# called by: 

summon spark:tutorial_marker ~ ~ ~
tag @e[type=spark:tutorial_marker,tag=!tutorial_main,c=1] add tutorial_instance
scoreboard players operation @e[type=spark:tutorial_marker,tag=tutorial_instance,c=1] player_id = .alloc_id player_id
# prep p1
execute as @e[tag=tutorial_instance,c=1] run function spark/tutorial/p1/load
# move the pointer up
tp @s ~ ~24 ~

# TODO: check when all instances are done, then run reset back to the base coords
