# © Spark Universe, 2023
# authors: destruc7i0n
# description: called when the pet is incapacitated, called as the marker
# called by: ./loop

scoreboard players set @p[tag=instance_player] SS_ui_tutorial 7
# playsound mob.villager.haggle @p[tag=instance_player]

# make pet not move
event entity @e[tag=instance_pet] spark:immobile

# reset positions for healing
execute positioned ~ ~ ~3 run tp @e[tag=instance_pet] ~ ~ ~ -90 0
tp @p[tag=instance_player] ~ ~ ~ facing @e[tag=instance_pet]

# move to next phase
scoreboard players set @s tut_timer 100

