sciguy1121 / Community-Mod-1

Community Mod 1
GNU Lesser General Public License v3.0
10 stars 16 forks source link

BUG: Robots attack other robots #195

Closed ghost closed 11 years ago

ghost commented 11 years ago

As the title says, robots attack other robots.

EliSussman commented 11 years ago

I think the reason is that robots count as mobs and it says in the code to kill all mobs ( I would know because I wrote most of it :P ) @LegioXV

ghost commented 11 years ago

I think the problem is this: this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityLiving.class, 16.0F, 0, true, false, IMob.mobSelector));

EliSussman commented 11 years ago

I know but it is easier than writing the individual statements for each mob to attack... @LegioXV :)

sciguy1121 commented 11 years ago

@KingCreeperEli We don't necessarily need to do that, we just need to say: if it's not this, this, or this, attack it.