public EntityVampirism(World world) { super(world); moveTowardsRestriction = new EntityAIMoveTowardsRestriction(this, 1.0F); }
@Override protected void initEntityAI() { this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIWeirdZombieAttack(this, 1.0D, false)); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(7, new EntityAIWander(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(4, new AIBlitzBoltAttack(this)); tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); tasks.addTask(7, new EntityAIWander(this, 1.0D)); tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(8, new EntityAILookIdle(this)); targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityBombardierBeetle.AIExplodeAttack(this)); tasks.addTask(2, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F)); tasks.addTask(3, new EntityAIWander(this, 0.5D)); tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 0.6D)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, false)); targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, false)); }
@Override protected void initEntityAI() { tasks.addTask(4, new AIBasalzBoltAttack(this)); tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); tasks.addTask(7, new EntityAIWander(this, 1.0D)); tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(8, new EntityAILookIdle(this)); targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@Override protected void initEntityAI() { tasks.addTask(4, new EntityBlizz.AIBlizzballAttack(this)); tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); tasks.addTask(7, new EntityAIWander(this, 1.0D)); tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); tasks.addTask(8, new EntityAILookIdle(this)); targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); }
@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(); }
public EntityMutantScientist(World p_i1738_1_) { super(p_i1738_1_); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIAttackMelee(this, 1, false)); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(7, new EntityAIWander(this, 1.0D)); this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityLivingBase.class, 8.0F)); this.tasks.addTask(8, new EntityAILookIdle(this)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget<>(this, EntityLivingBase.class, 0, true, false, new TargetSelector())); setSize(1, 2.3f); }
@Override protected void initEntityAI() { this.tasks.addTask(0, new EntityAIUnicornCharge(this, 1.0F, 10.0F, 5.0)); this.tasks.addTask(1, new EntityAIAttackMelee(this, 2, false)); this.tasks.addTask(2, new EntityAISwimming(this)); this.tasks.addTask(3, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(4, new EntityAIUnicornWander(this, 1.0D)); // this.tasks.addTask(3, new EntityAIWander(this, 0.6)); this.tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); this.tasks.addTask(6, new EntityAILookIdle(this)); // this.tasks.addTask(6, new EntityAIRunAroundLikeCrazy(this, 1.2D)); // this.tasks.addTask(7, new EntityAIMate(this, 1.0D)); // this.tasks.addTask(8, new EntityAIFollowParent(this, 1.0D)); // this.targetTasks.addTask(1, new EntityAINearestAttackableTarget<>(this, EntityPlayer.class, false, false)); // this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false)); this.targetTasks.addTask(0, new EntityAIHurtByTarget(this, false)); this.targetTasks.addTask(1, new EntityAINearestAttackableTarget<>(this, EntityPlayer.class, false)); // this.targetTasks.addTask(1, new EntityAINearestAttackableTarget<>(this, EntityFairy.class, false)); }
public EntityMimic(World worldIn) { super(worldIn); this.setSize(0.9F, 0.9F); this.tasks.addTask(1, new EntityAISwimming(this)); this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F)); this.tasks.addTask(4, new EntityMimic.AISpiderAttack(this)); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1)); this.tasks.addTask(6, new EntityAIWander(this, 0.8D)); this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); this.tasks.addTask(8, new EntityAILookIdle(this)); this.tasks.addTask(7, new EntityAIMimicReform(this)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false)); this.targetTasks.addTask(2, new EntityMimic.AISpiderTarget(this, EntityPlayer.class)); this.targetTasks.addTask(3, new EntityMimic.AISpiderTarget(this, EntityIronGolem.class)); }
/** * Make a new instance. * @param world The world. */ public ControlledZombie(World world) { super(world); addPotionEffect(new PotionEffect(MobEffects.NAUSEA, 2000, 0)); ((PathNavigateGround)this.getNavigator()).setBreakDoors(true); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 64.0F)); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false)); this.tasks.addTask(7, new EntityAIWander(this, 1.0D)); this.tasks.addTask(8, new EntityAILookIdle(this)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(2, new EntityAIAttackMelee(this, 1.2D, true)); this.setSize(0.6F, 1.8F); }
public EntityCorruptedZombie(World worldIn) { super(worldIn); this.setSize(0.6F, 1.95F); // ((PathNavigateGround) getNavigator()).setCanSwim(false); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(attackPriority, aiAttackOnCollide); this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(7, new EntityAIWander(this, 1.0D)); this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); this.tasks.addTask(8, new EntityAILookIdle(this)); this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true, EntityPigZombie.class)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget<>(this, EntityPlayer.class, true)); this.targetTasks.addTask(3, new EntityAINearestAttackableTarget<>(this, EntityVillager.class, false)); this.targetTasks.addTask(3, new EntityAINearestAttackableTarget<>(this, EntityIronGolem.class, true)); this.setCombatTask(); // this.targetTasks.addTask(8, new EntityAINearestAttackableTarget<EntityMob>(this, EntityMob.class, 10, true, false, new TargetPredicate(this))); }
public ReplicatorEntity(World par1World) { super(par1World); func_110163_bv(); //persistenceRequired this.setSize(0.3F, 0.7F); ReplicatoCableAI replicatorIa = new ReplicatoCableAI(this); int p = 0; this.tasks.addTask(p++, new EntityAISwimming(this)); // this.tasks.addTask(p++, new EntityAIBreakDoor(this)); this.tasks.addTask(p++, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false)); this.tasks.addTask(p++, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true)); this.tasks.addTask(p++, new EntityAIAttackOnCollide(this, ReplicatorEntity.class, 1.0D, true)); this.tasks.addTask(p++, replicatorIa); this.tasks.addTask(p++, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(p++, new EntityAIMoveThroughVillage(this, 1.0D, false)); this.tasks.addTask(p++, new ConfigurableAiWander(this, 1.0D, 20)); this.tasks.addTask(p, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); this.tasks.addTask(p++, new EntityAILookIdle(this)); p = 1; this.targetTasks.addTask(p++, new EntityAIHurtByTarget(this, true)); this.targetTasks.addTask(p, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true)); this.targetTasks.addTask(p, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false)); this.targetTasks.addTask(p++, new ReplicatorHungryAttack(this, ReplicatorEntity.class, 0, false)); // this.targetTasks.addTask(p++, new EntityAINearestAttackableTarget(this, ReplicatorEntity.class, 0, false)); // this.targetTasks.addTask(p++, replicatorIa); }
tasks.addTask(1, new EntityAIDragonRide(dragon)); // mutex all tasks.addTask(2, new EntityAIDragonFollowOwner(dragon)); // mutex all tasks.addTask(3, new EntityAIMoveTowardsRestriction(dragon, 1)); // mutex 1