Search in sources :

Example 1 with EntityAITropiCreeperSwell

use of net.tropicraft.core.common.entity.ai.EntityAITropiCreeperSwell 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]));
}
Also used : EntityAIWatchClosest(net.minecraft.entity.ai.EntityAIWatchClosest) EntityAITropiCreeperSwell(net.tropicraft.core.common.entity.ai.EntityAITropiCreeperSwell) EntityAISwimming(net.minecraft.entity.ai.EntityAISwimming) EntityAIAvoidEntity(net.minecraft.entity.ai.EntityAIAvoidEntity) EntityOcelot(net.minecraft.entity.passive.EntityOcelot) EntityPlayer(net.minecraft.entity.player.EntityPlayer) EntityAIHurtByTarget(net.minecraft.entity.ai.EntityAIHurtByTarget) EntityAIWander(net.minecraft.entity.ai.EntityAIWander) EntityAINearestAttackableTarget(net.minecraft.entity.ai.EntityAINearestAttackableTarget) EntityAILookIdle(net.minecraft.entity.ai.EntityAILookIdle) EntityAIAttackMelee(net.minecraft.entity.ai.EntityAIAttackMelee)

Aggregations

EntityAIAttackMelee (net.minecraft.entity.ai.EntityAIAttackMelee)1 EntityAIAvoidEntity (net.minecraft.entity.ai.EntityAIAvoidEntity)1 EntityAIHurtByTarget (net.minecraft.entity.ai.EntityAIHurtByTarget)1 EntityAILookIdle (net.minecraft.entity.ai.EntityAILookIdle)1 EntityAINearestAttackableTarget (net.minecraft.entity.ai.EntityAINearestAttackableTarget)1 EntityAISwimming (net.minecraft.entity.ai.EntityAISwimming)1 EntityAIWander (net.minecraft.entity.ai.EntityAIWander)1 EntityAIWatchClosest (net.minecraft.entity.ai.EntityAIWatchClosest)1 EntityOcelot (net.minecraft.entity.passive.EntityOcelot)1 EntityPlayer (net.minecraft.entity.player.EntityPlayer)1 EntityAITropiCreeperSwell (net.tropicraft.core.common.entity.ai.EntityAITropiCreeperSwell)1