use of net.minecraft.entity.ai.EntityAIAttackMelee in project MorePlanets by SteveKunG.
the class EntityGiantWorm method initEntityAI.
@Override
protected void initEntityAI() {
this.tasks.addTask(1, new EntityAISwimming(this));
this.tasks.addTask(2, new EntityAIAttackMelee(this, 1.0D, false));
this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
this.targetTasks.addTask(2, new EntityAINearestAttackableTarget<>(this, EntityPlayer.class, true));
}
Aggregations