#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

execute if entity @s[tag=blue] run tag @p[tag=!invulnerable,gamemode=adventure,team=!blue,dx=1,dy=1,dz=1] add snowball_target
execute if entity @s[tag=red] run tag @p[tag=!invulnerable,gamemode=adventure,team=!red,dx=1,dy=1,dz=1] add snowball_target
execute if entity @s[tag=green] run tag @p[tag=!invulnerable,gamemode=adventure,team=!green,dx=1,dy=1,dz=1] add snowball_target
execute if entity @s[tag=yellow] run tag @p[tag=!invulnerable,gamemode=adventure,team=!yellow,dx=1,dy=1,dz=1] add snowball_target
execute if entity @s[tag=seeker] run tag @p[gamemode=adventure,team=hider,dx=1,dy=1,dz=1] add snowball_target