# © Spark Universe, 2023
# authors: destruc7i0n
# description: spawn zombies for the lawnmower
# called by: 

execute positioned ~ ~ ~7 run summon spark:zombie_basic_holo ~ ~ ~ facing @p[tag=instance_player] spark:lawn_mower_damage
execute positioned ~ ~ ~7 as @e[type=spark:zombie_basic_holo,c=1] run tag @s add p3_spawn
execute positioned ~ ~ ~9 run summon spark:zombie_basic_holo ~ ~ ~ facing @p[tag=instance_player] spark:lawn_mower_damage
execute positioned ~ ~ ~9 as @e[type=spark:zombie_basic_holo,c=1] run tag @s add p3_spawn
execute positioned ~ ~ ~11 run summon spark:zombie_basic_holo ~ ~ ~ facing @p[tag=instance_player] spark:lawn_mower_damage
execute positioned ~ ~ ~11 as @e[type=spark:zombie_basic_holo,c=1] run tag @s add p3_spawn

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

tag @e[tag=p3_spawn] add tutorial_target
tag @e[tag=p3_spawn] remove p3_spawn
