How to make a group of skeletons attack only specified scoreboard team?
Make skeletons shoot only at specified scoreboard team
I am trying to make a tower with skeletons. The skeletons in the tower will shoot at every player they see. The problem: I want only 1 group of skeletons (not
@e[type=Skeleton]
) to shoot at scoreboard team, called team1, for example. If we have a second team, called team2, for example, the skeletons MUST NOT attack them.Note
I am doing this on a 21 core server, which has anti clock - you can not run clock redstone!
Based on the the information you've provided, you should be able to /summon
the skeletons or use the /entitiydata
command and add Team:"(team2)"
to their attributes. The skeletons don't attack players on the same team as them, so they'd only attack people on team 1 (assuming you only have 2 teams, this should work fine).