#This function should run as an entity with the tag "tutorial" and "animated_in", returns spawn preset id
execute if score waves astro_game.tutorial matches 1.. unless entity @e[tag=obstacle] run function astro_game:obstacles/actions/spawning_presets/tutorial/next_stage
execute if score waves astro_game.tutorial matches 1.. run return 0
scoreboard players set waiting_for_completion astro_game.tutorial 0
scoreboard players set enabled astro_game.obstacles 1
scoreboard players add waves astro_game.tutorial 1
return 16
