use of nex.entity.ai.EntityAIGoldGolemLookAtPigtificate in project NetherEx by LogicTechCorp.
the class EntityGoldGolem method initEntityAI.
@Override
protected void initEntityAI() {
tasks.addTask(1, new EntityAIAttackMelee(this, 1.0D, true));
tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
tasks.addTask(5, new EntityAIGoldGolemLookAtPigtificate(this));
tasks.addTask(6, new EntityAIWanderAvoidWater(this, 0.6D));
tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
tasks.addTask(8, new EntityAILookIdle(this));
targetTasks.addTask(1, new EntityAIGoldGolemDefendVillage(this));
targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 10, false, true, entity -> entity != null && IMob.VISIBLE_MOB_SELECTOR.apply((EntityLiving) entity) && !(entity instanceof EntitySporeCreeper)));
}
Aggregations