# © Spark Universe, 2023
# authors: destruc7i0n
# description: spawn targets for p2, run as instance marker
# called by: 

execute positioned ~ ~ ~12 run summon spark:zombie_basic_holo ~ ~ ~ facing @p[tag=instance_player] spark:projectile_damage
execute positioned ~ ~ ~12 as @e[type=spark:zombie_basic_holo,c=1] run tag @s add p2_spawn
execute positioned ~3 ~ ~12 run summon spark:zombie_basic_holo ~ ~ ~ facing @p[tag=instance_player] spark:projectile_damage
execute positioned ~3 ~ ~12 as @e[type=spark:zombie_basic_holo,c=1] run tag @s add p2_spawn
execute positioned ~-3 ~ ~12 run summon spark:zombie_basic_holo ~ ~ ~ facing @p[tag=instance_player] spark:projectile_damage
execute positioned ~-3 ~ ~12 as @e[type=spark:zombie_basic_holo,c=1] run tag @s add p2_spawn

execute as @e[tag=p2_spawn] run scoreboard players operation @s tut = .tut_player_id player_id
give @p[tag=instance_player] spark:sawblade_shooter 1 0 {"minecraft:item_lock": {"mode": "lock_in_slot"}, "minecraft:keep_on_death": {}}

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