use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction 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.EntityAIMoveTowardsRestriction 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.EntityAIMoveTowardsRestriction 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();
}
use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction in project Cavern2 by kegare.
the class EntityCaveman method initEntityAI.
@Override
protected void initEntityAI() {
tasks.addTask(0, new EntityAISwimming(this));
tasks.addTask(1, new EntityAIRestrictSun(this));
tasks.addTask(2, new EntityAIMoveTowardsRestriction(this, 1.0D));
tasks.addTask(5, new EntityAIWanderAvoidWater(this, 1.0D));
tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
tasks.addTask(8, new EntityAILookIdle(this));
applyEntityAI();
}
use of net.minecraft.entity.ai.EntityAIMoveTowardsRestriction in project ClaySoldiersMod by SanAndreasP.
the class EntityClaySoldier method initEntityAI.
@Override
protected void initEntityAI() {
this.tasks.addTask(1, new EntityAIFollowTarget.Fallen(this, 1.0D));
this.tasks.addTask(2, new EntityAIFollowTarget.Upgrade(this, 1.0D));
this.tasks.addTask(2, new EntityAIFollowTarget.Mount(this, 1.0D));
this.tasks.addTask(2, new EntityAIFollowInventory(this, 1.0D));
this.tasks.addTask(3, new EntityAIFollowTarget.King(this, 1.0D));
this.tasks.addTask(4, new EntityAIFollowEnemy.Ranged(this, 1.0D));
this.tasks.addTask(5, new EntityAIFollowEnemy.Meelee(this, 1.0D));
this.tasks.addTask(6, new EntityAIMoveTowardsRestriction(this, 0.5D));
this.tasks.addTask(7, new EntityAIWander(this, 0.5D));
this.tasks.addTask(8, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAISearchTarget.Fallen(this));
this.targetTasks.addTask(2, new EntityAISearchTarget.Upgrade(this));
this.targetTasks.addTask(2, new EntityAISearchInventory(this));
this.targetTasks.addTask(2, new EntityAISearchTarget.Mount(this));
this.targetTasks.addTask(3, new EntityAISearchTarget.King(this));
this.targetTasks.addTask(4, new EntityAISearchTarget.Enemy(this));
}
Aggregations