So what was I planning was, a defense game. Zombies will raid each others base and these Zombies have custom A.I. using /execute detect. So now, if Zombie A encounter Zombie B, how would I stop Zombie A and Zombie B from moving without stopping the other zombie's movement?
then hooked to a comparator facing a command block with:
/execute @e[team=A,type=Zombie] ~ ~ ~ /setblock ~ ~-3 ~ air
All zombies in Team A will freeze because the block (for example,stained glass) that made them move was removed because all zombie in Team A will execute setblock. Any ideas on how to solve this.
I have returned after all these years and I'm internally dying inside whenever I think about the posts I've done prior to this current year. Just don't look at them.
So what was I planning was, a defense game. Zombies will raid each others base and these Zombies have custom A.I. using /execute detect. So now, if Zombie A encounter Zombie B, how would I stop Zombie A and Zombie B from moving without stopping the other zombie's movement?
Further clarity:
If I would use this:
then hooked to a comparator facing a command block with:
All zombies in Team A will freeze because the block (for example,stained glass) that made them move was removed because all zombie in Team A will execute setblock. Any ideas on how to solve this.
I have returned after all these years and I'm internally dying inside whenever I think about the posts I've done prior to this current year. Just don't look at them.
Minecraft is forever eternal...
I'm not entirely certain on what you're after, but it sounds like the NoAI tag is what you want. The command:
/entitydata @e[selector] {NoAI:1}
will turn off the AI of any mob targeted, making them just stand there motionless.
Check out my Youtube channel, where I build a theme park in vanilla Minecraft!
https://www.youtube.com/playlist?list=PLeCiIIOoWhe-mq3nYd_nXXrKw9MkjnUU7