use of net.minecraft.entity.ai.EntityAILookIdle in project Tropicraft by Tropicraft.
the class EntityTropiCreeper method initEntityAI.
@Override
protected void initEntityAI() {
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAITropiCreeperSwell(this));
this.tasks.addTask(3, new EntityAIAvoidEntity(this, EntityOcelot.class, 6.0F, 1.0D, 1.2D));
this.tasks.addTask(4, new EntityAIAttackMelee(this, 1.0D, false));
this.tasks.addTask(5, new EntityAIWander(this, 0.8D));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(6, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
}
use of net.minecraft.entity.ai.EntityAILookIdle in project Tropicraft by Tropicraft.
the class EntityTropiSkeleton method initEntityAI.
@Override
protected void initEntityAI() {
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIAttackMelee(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();
}
use of net.minecraft.entity.ai.EntityAILookIdle in project Tropicraft by Tropicraft.
the class EntityTropiSpider method initEntityAI.
@Override
protected void initEntityAI() {
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIAttackMelee(this, 0.8D, false));
this.tasks.addTask(7, new EntityAIWanderNotLazy(this, 0.8D, 40));
this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(8, new EntityAILookIdle(this));
}
use of net.minecraft.entity.ai.EntityAILookIdle in project Cavern2 by kegare.
the class EntitySummonZombie method initEntityAI.
@Override
protected void initEntityAI() {
tasks.addTask(0, new EntityAISwimming(this));
tasks.addTask(2, new EntityAIZombieAttack(this, 1.0D, false));
tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D));
tasks.addTask(8, new EntityAIWatchClosest(this, EntityMob.class, 8.0F));
tasks.addTask(8, new EntityAILookIdle(this));
applyEntityAI();
}
use of net.minecraft.entity.ai.EntityAILookIdle in project Cavern2 by kegare.
the class EntitySummonCavenicZombie method initEntityAI.
@Override
protected void initEntityAI() {
tasks.addTask(0, new EntityAISwimming(this));
tasks.addTask(2, new EntityAIZombieAttack(this, 1.0D, false));
tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D));
tasks.addTask(8, new EntityAIWatchClosest(this, EntityMob.class, 8.0F));
tasks.addTask(8, new EntityAILookIdle(this));
applyEntityAI();
}
Aggregations