# © Spark Universe, 2023
# authors: destruc7i0n
# description: called when the player chooses a pet, run as each of the pets available to the player
# called by: ./loop

# remove tutorial data
tag @s remove tutorial_pet
scoreboard players reset @s tut

# despawn other untamed pets
execute if entity @s[tag=!tamed] run fill ~ ~-2 ~ ~ ~ ~ air [] replace mud_brick_slab
execute if entity @s[tag=!tamed] run event entity @s spark:despawn

playsound spark.zombies2.tutorial.success_major @p[tag=instance_player]
