@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAIWanderAvoidWater(this, 0.48D)); tasks.addTask(2, new EntityAIEatCrops(this, 0.6D, 20)); tasks.addTask(3, new EntityAIPanic(this, 0.8D)); ///tasks.addTask(4, new EntityAILookIdle(this)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAIErebusAttackMelee(this, 0.4D, false)); tasks.addTask(2, new EntityAILookIdle(this)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.6D)); targetTasks.addTask(0, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.5D)); tasks.addTask(4, new EntityAIPanic(this, 0.7F)); tasks.addTask(5, new EntityAILookIdle(this)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAIErebusAttackMelee(this, 0.4D, false)); tasks.addTask(2, new EntityAILookIdle(this)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.6D)); targetTasks.addTask(0, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAIAvoidEntity(this, EntityPlayer.class, 10.0F, 0.7D, 0.6D)); tasks.addTask(2, new EntityAIAvoidEntity(this, EntityMob.class, 10.0F, 0.7D, 0.6D)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.6D)); tasks.addTask(4, new EntityAIPanic(this, 0.6D)); tasks.addTask(5, new EntityAILookIdle(this)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAIErebusAttackMelee(this, 0.6D, false)); tasks.addTask(2, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.4D)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, false)); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIPanic(this, 1.0D)); this.tasks.addTask(2, new EntityAIMate(this, 1.0D)); this.tasks.addTask(3, new EntityAITempt(this, 1.0D, false, TEMPTATION_ITEMS)); this.tasks.addTask(4, new EntityAIFollowParent(this, 1.1D)); this.tasks.addTask(5, new EntityAIWanderAvoidWater(this, 1.0D)); this.tasks.addTask(6, new EntityAILookIdle(this)); }
@Override protected void initEntityAI() { this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAILivingAttack(this, 1.0D, false)); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(6, new EntityAIFollowPlayer(this, 1.0D, 10.0F, 2.0F)); this.tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D)); this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); this.tasks.addTask(8, new EntityAILookIdle(this)); this.applyEntityAI(); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAILeapAtTarget(this, 0.4F)); tasks.addTask(2, new EntityAIErebusAttackMelee(this, 0.6D, true)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.4D)); tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(5, new EntityAILookIdle(this)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, false, new Class[0])); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAILeapAtTarget(this, 0.4F)); tasks.addTask(2, new EntityAIErebusAttackMelee(this, 0.6D, true)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.4D)); tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(5, new EntityAILookIdle(this)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, false, new Class[0])); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAIErebusAttackMelee(this, 0.3D, false)); tasks.addTask(2, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.3D)); tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(5, new EntityAILookIdle(this)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, false)); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIPanic(this, 2.0D)); this.tasks.addTask(2, new EntityAIMate(this, 1.0D)); this.tasks.addTask(3, new EntityAITempt(this, 0.8D, true, TEMPTATION_ITEMS)); this.tasks.addTask(4, new EntityAIFollowParent(this, 1.25D)); this.tasks.addTask(5, new EntityAIWanderAvoidWater(this, 1.0D)); this.tasks.addTask(6, new EntityDeer.AIAvoidEntity(this, EntityPlayer.class, 5.0F, 2.0D, 2.5D)); this.tasks.addTask(7, new EntityAILookIdle(this)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAILeapAtTarget(this, 0.4F)); tasks.addTask(2, new EntityAIErebusAttackMelee(this, 0.6D, true)); tasks.addTask(3, new EntityAIWanderAvoidWater(this, 0.5D)); tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(5, new EntityAILookIdle(this)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, false, new Class[0])); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { tasks.addTask(1, new EntityAISwimming(this)); tasks.addTask(3, new EntityAILeapAtTarget(this, 0.6F)); tasks.addTask(4, new EntityAIErebusAttackMelee(this, 1.0D, true)); tasks.addTask(5, new EntityAIWanderAvoidWater(this, 0.8D)); tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(6, new EntityAILookIdle(this)); targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0])); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityLavaWebSpider.AILavaWebSlingAttack(this)); tasks.addTask(2, new EntityAILeapAtTarget(this, 0.4F)); tasks.addTask(3, new EntityAIErebusAttackMelee(this, 0.5D, true)); tasks.addTask(4, new EntityAIWanderAvoidWater(this, 0.5D)); tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(6, new EntityAILookIdle(this)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, false, new Class[0])); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
protected void initEntityAI() { this.tasks.addTask(1, new TrollAIFleeSun(this, 1.0D)); this.tasks.addTask(2, new EntityAIAttackMelee(this, 1.0D, true)); this.tasks.addTask(3, new EntityAIWanderAvoidWater(this, 1.0D)); this.tasks.addTask(4, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F, 1.0F)); this.tasks.addTask(4, new EntityAILookIdle(this)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0])); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, false)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, false)); ((PathNavigateGround) this.getNavigator()).setAvoidSun(true); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityScytodes.AIWebSlingAttack(this)); tasks.addTask(2, new EntityAILeapAtTarget(this, 0.4F)); tasks.addTask(3, new EntityAIErebusAttackMelee(this, 0.5D, true)); tasks.addTask(4, new EntityAIWanderAvoidWater(this, 0.5D)); tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(6, new EntityAILookIdle(this)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, false, new Class[0])); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
public EntityDireWolf(World world) { super(world); setSize(0.8F, 1.2F); tasks.addTask(1, new EntityAISwimming(this)); tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F)); tasks.addTask(4, new EntityAIAttackOnCollideAggressive(this, 1.1D, true).setAttackFrequency(20)); tasks.addTask(7, new EntityAIWanderAvoidWater(this, 0.5D)); tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(9, new EntityAILookIdle(this)); targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); targetTasks.addTask(2, new EntityAINearestAttackableTargetBounded<EntityPlayer>(this, EntityPlayer.class, true).setMaxDistanceToTarget(ZooConfig.wolfAggressionRange)); }
protected void initEntityAI() { this.tasks.addTask(2, new EntityAIRestrictSun(this)); this.tasks.addTask(3, new EntityAIFleeSun(this, 1.0D)); this.tasks.addTask(3, new CyclopsAIAttackMelee(this, 1.0D, false)); this.tasks.addTask(5, new EntityAIWanderAvoidWater(this, 1.0D)); this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F, 1.0F)); this.tasks.addTask(6, new EntityAILookIdle(this)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0])); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLivingBase.class, 0, true, true, new Predicate<EntityLivingBase>() { @Override public boolean apply(@Nullable EntityLivingBase entity) { return !EntityGorgon.isStoneMob(entity) && DragonUtils.isAlive(entity) && !(entity instanceof EntityWaterMob) && !(entity instanceof EntityPlayer) && !(entity instanceof EntityCyclops) && !EventLiving.isAnimaniaSheep(entity) && !(entity instanceof EntityAnimal && !(entity instanceof EntityWolf || entity instanceof EntityPolarBear || entity instanceof EntityDragonBase)) || entity instanceof EntityGorgon || entity instanceof EntityVillager; } })); this.targetTasks.addTask(3, new CyclopsAITargetSheepPlayers(this, EntityPlayer.class, 0, true, true, new Predicate<Entity>() { @Override public boolean apply(@Nullable Entity entity) { return true; } })); }
@Override protected void initEntityAI() { tasks.addTask(1, new EntityAISwimming(this)); tasks.addTask(2, new EntityBlackWidow.AIWebSlingAttack(this)); tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F)); tasks.addTask(4, new EntityAIErebusAttackMelee(this, 0.5D, true)); tasks.addTask(5, new EntityAIWanderAvoidWater(this, 0.5D)); tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(6, new EntityAILookIdle(this)); targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0])); targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityFly.class, true)); targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityBotFly.class, true)); targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityMidgeSwarm.class, true)); }