use of net.minecraft.entity.ai.EntityAIWanderAvoidWater 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.EntityAIWanderAvoidWater 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.EntityAIWanderAvoidWater 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.EntityAIWanderAvoidWater in project Almura by AlmuraDev.
the class MixinEntityChicken method initEntityAI.
/**
* @author Dockter
* Purpose: overwrite the AT init method to customize the temptations list.
*/
@Overwrite
protected void initEntityAI() {
final Set<Item> TEMPTATION_ITEMS = Sets.newHashSet(Items.WHEAT_SEEDS, Items.MELON_SEEDS, Items.PUMPKIN_SEEDS, Items.BEETROOT_SEEDS);
Item soyBeanItem = GameRegistry.makeItemStack("almura:food/food/soybean", 0, 1, null).getItem();
Item cornItem = GameRegistry.makeItemStack("almura:food/food/corn", 0, 1, null).getItem();
if (soyBeanItem != ItemStack.EMPTY.getItem())
TEMPTATION_ITEMS.add(soyBeanItem);
if (cornItem != ItemStack.EMPTY.getItem())
TEMPTATION_ITEMS.add(cornItem);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 1.4D));
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 EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
}
use of net.minecraft.entity.ai.EntityAIWanderAvoidWater in project DefiledLands by Lykrast.
the class EntityDestroyer method initEntityAI.
protected void initEntityAI() {
this.tasks.addTask(0, new AIDoNothing());
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, new AIBigLeap(this, 1.2F));
this.tasks.addTask(3, new EntityAIAttackMelee(this, 1.0D, true));
this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
this.tasks.addTask(7, new EntityAIWanderAvoidWater(this, 1.0D));
this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(9, new EntityAILookIdle(this));
this.targetTasks.addTask(1, new EntityAINearestAttackableTarget<EntityPlayer>(this, EntityPlayer.class, false));
this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
}
Aggregations