on rightclick:
if player's tool is a stick named "StraySpawner":
spawn a Zombie at player's location
set {_mob} to the last spawned entity
set {Mob.%last spawned entity%} to "%player%"
set display name of {_mob} to "%player%'s Zombie"
loop all entities in radius 10 around player:
if loop-entity is not a player:
if loop-entity is not {_mob}:
if {Mob.%last spawned entity%.%player%} is not {Mob.%last spawned entity%}:
set target of {_mob} to loop-entity
how i can make that Zombies at same team cant attack team members, that they only attack that other team
if player's tool is a stick named "StraySpawner":
spawn a Zombie at player's location
set {_mob} to the last spawned entity
set {Mob.%last spawned entity%} to "%player%"
set display name of {_mob} to "%player%'s Zombie"
loop all entities in radius 10 around player:
if loop-entity is not a player:
if loop-entity is not {_mob}:
if {Mob.%last spawned entity%.%player%} is not {Mob.%last spawned entity%}:
set target of {_mob} to loop-entity
how i can make that Zombies at same team cant attack team members, that they only attack that other team