# © Spark Universe, 2023
# authors: destruc7i0n
# description: spawn the attack zombie to attack the pet
# called by: 

# spawn a single zombie 
execute positioned ~ ~ ~9 run summon spark:zombie_basic_holo ~ ~ ~ facing @e[tag=instance_pet] spark:attack_on_pet
execute positioned ~ ~ ~9 run tag @e[type=spark:zombie_basic_holo,c=1] add p6_spawn

execute as @e[tag=p6_spawn] run scoreboard players operation @s tut = .tut_player_id player_id

tag @e[tag=p6_spawn] add tutorial_target
execute as @e[tag=p6_spawn] at @s run tp @s ~ ~ ~ facing @p[tag=instance_player]
tag @e[tag=p6_spawn] remove p6_spawn
