# © Spark Universe, 2023
# authors: destruc7i0n
# description: called when the button is pressed
# called by: tutorial button entity animation controller

# say pressed
execute as @a[r=10] run function spark/tutorial/instance/allocate
execute if entity @e[tag=tutorial_main,tag=!started_tutorial] run playsound spark.zombies2.gamestate.start_game @a
execute if entity @e[tag=tutorial_main,tag=!started_tutorial] run music stop 4.0
tag @e[tag=tutorial_main] add started_tutorial
