Java Code Examples for net.minecraft.entity.ai.EntityAIAttackOnCollide

The following are top voted examples for showing how to use net.minecraft.entity.ai.EntityAIAttackOnCollide. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: BaseClient   File: EntityEnderman.java   Source Code and License 6 votes vote down vote up
public EntityEnderman(World worldIn)
{
    super(worldIn);
    this.setSize(0.6F, 2.9F);
    this.stepHeight = 1.0F;
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, 1.0D, false));
    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.tasks.addTask(10, new EntityEnderman.AIPlaceBlock(this));
    this.tasks.addTask(11, new EntityEnderman.AITakeBlock(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(2, new EntityEnderman.AIFindPlayer(this));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityEndermite.class, 10, true, false, new Predicate<EntityEndermite>()
    {
        public boolean apply(EntityEndermite p_apply_1_)
        {
            return p_apply_1_.isSpawnedByPlayer();
        }
    }));
}
 
Example 2
Project: BaseClient   File: EntityIronGolem.java   Source Code and License 6 votes vote down vote up
public EntityIronGolem(World worldIn)
{
    super(worldIn);
    this.setSize(1.4F, 2.9F);
    ((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(5, new EntityAILookAtVillager(this));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIDefendVillage(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(3, new EntityIronGolem.AINearestAttackableTargetNonCreeper(this, EntityLiving.class, 10, false, true, IMob.VISIBLE_MOB_SELECTOR));
}
 
Example 3
Project: BaseClient   File: EntityEnderman.java   Source Code and License 6 votes vote down vote up
public EntityEnderman(World worldIn)
{
    super(worldIn);
    this.setSize(0.6F, 2.9F);
    this.stepHeight = 1.0F;
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, 1.0D, false));
    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.tasks.addTask(10, new EntityEnderman.AIPlaceBlock(this));
    this.tasks.addTask(11, new EntityEnderman.AITakeBlock(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(2, new EntityEnderman.AIFindPlayer(this));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityEndermite.class, 10, true, false, new Predicate<EntityEndermite>()
    {
        public boolean apply(EntityEndermite p_apply_1_)
        {
            return p_apply_1_.isSpawnedByPlayer();
        }
    }));
}
 
Example 4
Project: BaseClient   File: EntityIronGolem.java   Source Code and License 6 votes vote down vote up
public EntityIronGolem(World worldIn)
{
    super(worldIn);
    this.setSize(1.4F, 2.9F);
    ((PathNavigateGround)this.getNavigator()).setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(5, new EntityAILookAtVillager(this));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIDefendVillage(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
    this.targetTasks.addTask(3, new EntityIronGolem.AINearestAttackableTargetNonCreeper(this, EntityLiving.class, 10, false, true, IMob.VISIBLE_MOB_SELECTOR));
}
 
Example 5
Project: witchery   File: EntityHornedHuntsman.java   Source Code and License 6 votes vote down vote up
public EntityHornedHuntsman(World par1World) {
   super(par1World);
   this.setSize(1.4F, 3.2F);
   super.isImmuneToFire = true;
   this.getNavigator().setAvoidsWater(true);
   this.getNavigator().setCanSwim(true);
   super.tasks.addTask(1, new EntityAISwimming(this));
   super.tasks.addTask(2, new EntityAIAttackOnCollide(this, 1.0D, true));
   super.tasks.addTask(3, new EntityAIMoveTowardsTarget(this, 1.0D, 48.0F));
   super.tasks.addTask(4, new EntityAIArrowAttack(this, 1.0D, 20, 60, 30.0F));
   super.tasks.addTask(5, new EntityAIWander(this, 1.0D));
   super.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
   super.tasks.addTask(7, new EntityAILookIdle(this));
   super.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
   super.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
   super.experienceValue = 70;
}
 
Example 6
Project: PopularMMOS-EpicProportions-Mod   File: EntityJenGolem.java   Source Code and License 6 votes vote down vote up
public EntityJenGolem(World p_i1694_1_)
{
    super(p_i1694_1_);
    this.setSize(1.4F, 2.9F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    //this.tasks.addTask(5, new EntityAILookAtVillager(this));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    //this.targetTasks.addTask(1, new EntityAIDefendVillage(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
}
 
Example 7
Project: PopularMMOS-EpicProportions-Mod   File: EntityFred2_0.java   Source Code and License 6 votes vote down vote up
public EntityFred2_0(World p_i1745_1_)
{
    super(p_i1745_1_);
    this.getNavigator().setBreakDoors(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
    this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
    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.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
    this.setSize(0.6F, 1.8F);
}
 
Example 8
Project: PopularMMOS-EpicProportions-Mod   File: EntityCandyMan.java   Source Code and License 6 votes vote down vote up
public EntityCandyMan(World var1)
{
    super(var1);
    world = var1;
    experienceValue = 5;
    this.isImmuneToFire = true;
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
    this.hasCustomNameTag();
    this.setCustomNameTag("�2The Candy Man");
    addRandomArmor();
    DungeonHooks.addDungeonMob("�2The Candy Man", 180);
}
 
Example 9
Project: PopularMMOS-EpicProportions-Mod   File: EntityNinjaMaster.java   Source Code and License 6 votes vote down vote up
public EntityNinjaMaster(World p_i1745_1_)
{
    super(p_i1745_1_);
    this.getNavigator().setBreakDoors(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
    this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
    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.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    //this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
    this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.0D, 20, 60, 15.0F));

    this.setSize(0.6F, 1.8F);
}
 
Example 10
Project: PopularMMOS-EpicProportions-Mod   File: EntityPat.java   Source Code and License 6 votes vote down vote up
public EntityPat(World var1)
{
    super(var1);
    world = var1;
    experienceValue = 5;
    this.isImmuneToFire = true;
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
    this.hasCustomNameTag();
    this.setCustomNameTag("FuriousDestroyer");
    
    addRandomArmor();
    DungeonHooks.addDungeonMob("FuriousDestroyer", 180);
}
 
Example 11
Project: PopularMMOS-EpicProportions-Mod   File: EntityCaptianCookie.java   Source Code and License 6 votes vote down vote up
public EntityCaptianCookie(World var1)
{
    super(var1);
    world = var1;
    experienceValue = 5;
    this.isImmuneToFire = true;
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
   
    this.hasCustomNameTag();
    this.setCustomNameTag("Captian Cookie");
    addRandomArmor();
    DungeonHooks.addDungeonMob("Captian Cookie", 180);
}
 
Example 12
Project: PopularMMOS-EpicProportions-Mod   File: EntityJen.java   Source Code and License 6 votes vote down vote up
public EntityJen(World var1)
{
    super(var1);
    world = var1;
    experienceValue = 5;
    this.isImmuneToFire = true;
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
    this.hasCustomNameTag();
    this.setCustomNameTag("SuperGirlyGamer");
    addRandomArmor();
    DungeonHooks.addDungeonMob("SuperGirlyGamer", 180);
}
 
Example 13
Project: PopularMMOS-EpicProportions-Mod   File: EntityPatGolem.java   Source Code and License 6 votes vote down vote up
public EntityPatGolem(World p_i1694_1_)
{
    super(p_i1694_1_);
    this.setSize(1.4F, 2.9F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    //this.tasks.addTask(5, new EntityAILookAtVillager(this));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    //this.targetTasks.addTask(1, new EntityAIDefendVillage(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
}
 
Example 14
Project: PopularMMOS-EpicProportions-Mod   File: EntityClown.java   Source Code and License 6 votes vote down vote up
public EntityClown(World p_i1745_1_)
{
    super(p_i1745_1_);
    this.getNavigator().setBreakDoors(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
    this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
    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.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
    this.setSize(0.6F, 1.8F);
}
 
Example 15
Project: PopularMMOS-EpicProportions-Mod   File: EntityCandyPopper.java   Source Code and License 6 votes vote down vote up
public EntityCandyPopper(World p_i1745_1_)
{
    super(p_i1745_1_);
    this.getNavigator().setBreakDoors(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
    this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
    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.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
    this.setSize(0.6F, 1.8F);
}
 
Example 16
Project: PopularMMOS-EpicProportions-Mod   File: EntityBellie.java   Source Code and License 6 votes vote down vote up
public EntityBellie(World var1)
{
    super(var1);
    world = var1;
    experienceValue = 5;
    this.isImmuneToFire = true;
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
   
    this.hasCustomNameTag();
    //this.setCustomNameTag("Captian Cookie");
    addRandomArmor();
    //DungeonHooks.addDungeonMob("Captian Cookie", 180);
}
 
Example 17
Project: PopularMMOS-EpicProportions-Mod   File: EntitySpookyPat.java   Source Code and License 6 votes vote down vote up
public EntitySpookyPat(World var1)
{
    super(var1);
    world = var1;
    experienceValue = 5;
    this.isImmuneToFire = true;
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
    this.hasCustomNameTag();
    this.setCustomNameTag("FuriousDestroyer");
    
    addRandomArmor();
    DungeonHooks.addDungeonMob("FuriousDestroyer", 180);
}
 
Example 18
Project: PopularMMOS-EpicProportions-Mod   File: EntityGhost.java   Source Code and License 6 votes vote down vote up
public EntityGhost(World p_i1745_1_)
{
    super(p_i1745_1_);
    this.getNavigator().setBreakDoors(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
    this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
    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.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
    this.setSize(0.6F, 1.8F);
}
 
Example 19
Project: PopularMMOS-EpicProportions-Mod   File: EntitySpookyJen.java   Source Code and License 6 votes vote down vote up
public EntitySpookyJen(World var1)
{
    super(var1);
    world = var1;
    experienceValue = 5;
    this.isImmuneToFire = true;
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
    this.hasCustomNameTag();
    this.setCustomNameTag("SuperGirlyGamer");
    addRandomArmor();
    DungeonHooks.addDungeonMob("SuperGirlyGamer", 180);
}
 
Example 20
Project: PopularMMOS-EpicProportions-Mod   File: EntityGingerBreadMan.java   Source Code and License 6 votes vote down vote up
public EntityGingerBreadMan(World var1)
{
    super(var1);
    world = var1;
    experienceValue = 5;
    this.isImmuneToFire = true;
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
    this.hasCustomNameTag();
    this.setCustomNameTag("GingerBreadMan");
    
    addRandomArmor();
    DungeonHooks.addDungeonMob("GingerBreadMan", 180);
}
 
Example 21
Project: demomod   File: DemoEntityTameable.java   Source Code and License 6 votes vote down vote up
public DemoEntityTameable(World worldIn) {
	super(worldIn);
	this.setSize(0.6F, 0.8F);
	((PathNavigateGround) this.getNavigator()).func_179690_a(true);
	this.tasks.addTask(1, new EntityAISwimming(this));
	this.tasks.addTask(2, this.aiSit);
	this.tasks.addTask(3, new EntityAILeapAtTarget(this, Config.entityTameableAILeapAtTargetHeight));
	this.tasks.addTask(4, new EntityAIAttackOnCollide(this, Config.entityTameableAIAttackOnCollideSpeed, true));
	this.tasks.addTask(5, new EntityAIFollowOwner(this, Config.entityTameableAIFollowOwnerSpeed,
			Config.entityTameableAIFollowOwnerMaxDistance, Config.entityTameableAIFollowOwnerMinDistance));
	this.tasks.addTask(6, new EntityAIMate(this, Config.entityTameableAIMateMoveSpeed));
	this.tasks.addTask(7, new EntityAIWander(this, Config.entityTameableAIWanderSpeed));
	this.tasks.addTask(8, new DemoEntityAIBeg(this, Config.entityTameableAIBegDistance));
	this.tasks.addTask(9,
			new EntityAIWatchClosest(this, EntityPlayer.class, Config.entityTameableAIWatchClosestDistance));
	this.tasks.addTask(9, new EntityAILookIdle(this));
	this.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
	this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
	this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true, new Class[0]));
	this.targetTasks.addTask(5, new EntityAINearestAttackableTarget(this, DemoEntityHostile.class, false));
	this.setTamed(false);
}
 
Example 22
Project: piggalot-mod   File: GGPMobNPC.java   Source Code and License 6 votes vote down vote up
public GGPMobNPC(World par1World, String customName) {
	super(par1World);
	this.getNavigator().setBreakDoors(true);
	this.getNavigator().setAvoidsWater(true);
	this.tasks.addTask(0, new EntityAISwimming(this));
	this.tasks.addTask(9, new EntityAIWander(this, 0.6D));
	this.tasks.addTask(2, new EntityAIMoveIndoors(this));
	this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F));
	this.tasks.addTask(4, new EntityAIOpenDoor(this, true));
	this.tasks.addTask(2, new EntityAIMoveIndoors(this));
       this.tasks.addTask(3, new EntityAIRestrictOpenDoor(this));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.6D));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
       this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, false));
	this.setCustomNameTag(customName);
	
}
 
Example 23
Project: Coding   File: EntityBaron.java   Source Code and License 6 votes vote down vote up
public EntityBaron(World world){
	super(world);
	// TODO: Add a new AI that summons 2 guards if no guards are nearby
	this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true));
	this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityCreature.class, 0, true, false, 
			new IEntitySelector() {
				public boolean isEntityApplicable(Entity entity) {
					if (!isLookingForHome && ((EntityCreature) entity).isWithinHomeDistanceCurrentPosition() && entity instanceof EntityZombie)
						return true;
					return false;
				}
		}));		
	// Summons 2 guards
	this.targetTasks.addTask(3, new EntityAISummonGuards(this, EntityPlayer.class, true, true, 2));

	setGuardWeaponType(type);
}
 
Example 24
Project: Coding   File: EntitySpearGuard.java   Source Code and License 6 votes vote down vote up
public EntitySpearGuard(World world){
	super(world);
	if (this.worldObj.difficultySetting == EnumDifficulty.EASY)
		this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true));
	else
		this.tasks.addTask(1, new EntityAISpearAttack(this, 1.0D, 20, 60, 15.0F));
	this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityCreature.class, 0, true, false, 
			new IEntitySelector() {
				public boolean isEntityApplicable(Entity entity) {
					if (!isLookingForHome && ((EntityCreature) entity).isWithinHomeDistanceCurrentPosition() && entity instanceof EntityZombie)
						return true;
					return false;
				}
		}));		        
	setGuardWeaponType(type);
}
 
Example 25
Project: Coding   File: EntityLongbowGuard.java   Source Code and License 6 votes vote down vote up
public EntityLongbowGuard(World world){
	super(world);
	if (this.worldObj.difficultySetting == EnumDifficulty.EASY)
		this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true));
	else
		this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.0D, 20, 60, 15.0F));
	this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityCreature.class, 0, true, false, 
			new IEntitySelector() {
				public boolean isEntityApplicable(Entity entity) {
					if (!isLookingForHome && ((EntityCreature) entity).isWithinHomeDistanceCurrentPosition() && entity instanceof EntityZombie)
						return true;
					return false;
				}
		}));		        
	setGuardWeaponType(type);
}
 
Example 26
Project: Coding   File: EntityCrossbowGuard.java   Source Code and License 6 votes vote down vote up
public EntityCrossbowGuard(World world){
	super(world);
	if (this.worldObj.difficultySetting == EnumDifficulty.EASY)
		this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true));
	else
		this.tasks.addTask(1, new EntityAIArrowAttack(this, 1.0D, 20, 60, 15.0F));
	this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityCreature.class, 0, true, false, 
			new IEntitySelector() {
				public boolean isEntityApplicable(Entity entity) {
					if (!isLookingForHome && ((EntityCreature) entity).isWithinHomeDistanceCurrentPosition() && entity instanceof EntityZombie)
						return true;
					return false;
				}
		}));		        
	setGuardWeaponType(type);
}
 
Example 27
Project: mo-zombies   File: EntityZombieDwarf.java   Source Code and License 6 votes vote down vote up
public EntityZombieDwarf(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.45D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.45D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.45D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.45D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.45D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 28
Project: mo-zombies   File: EntityNetherZombie.java   Source Code and License 6 votes vote down vote up
public EntityNetherZombie(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.23D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.23D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.23D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.23D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.23D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
       this.isImmuneToFire = true;
}
 
Example 29
Project: mo-zombies   File: EntityZombiePa.java   Source Code and License 6 votes vote down vote up
public EntityZombiePa(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.50D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.50D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.50D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.50D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.50D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 30
Project: mo-zombies   File: EntityZombieNotch.java   Source Code and License 6 votes vote down vote up
public EntityZombieNotch(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.15D, false));
       this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityZombieHerobrine.class, 0.15D, true));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.15D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.15D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.15D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.15D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityZombieHerobrine.class, 0, false));
       this.targetTasks.addTask(4, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 31
Project: mo-zombies   File: EntityZombieKing.java   Source Code and License 6 votes vote down vote up
public EntityZombieKing(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.20D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.20D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.20D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.20D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.20D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 32
Project: mo-zombies   File: EntityZombieHerobrine.java   Source Code and License 6 votes vote down vote up
public EntityZombieHerobrine(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.00D, false));
       this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityZombieNotch.class, 1.00D, true));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.00D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.00D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.00D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 1.00D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityZombieNotch.class, 0, false));
       this.targetTasks.addTask(4, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
       this.isImmuneToFire = true;
}
 
Example 33
Project: mo-zombies   File: EntityDiscoZombie.java   Source Code and License 6 votes vote down vote up
public EntityDiscoZombie(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.setJumping(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.3D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.3D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.3D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.3D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.3D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 34
Project: mo-zombies   File: EntityZombiePirate.java   Source Code and License 6 votes vote down vote up
public EntityZombiePirate(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.45D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.45D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.45D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.45D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.45D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 35
Project: mo-zombies   File: EntityZombieKnight.java   Source Code and License 6 votes vote down vote up
public EntityZombieKnight(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.30D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.30D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.30D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.30D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.30D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 36
Project: mo-zombies   File: EntityZombieChef.java   Source Code and License 6 votes vote down vote up
public EntityZombieChef(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.23D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.23D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.23D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.23D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.23D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 37
Project: mo-zombies   File: EntityZombieCyborg.java   Source Code and License 6 votes vote down vote up
public EntityZombieCyborg(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.23D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.23D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.23D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.23D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.23D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 38
Project: mo-zombies   File: EntityZombieMiner.java   Source Code and License 6 votes vote down vote up
public EntityZombieMiner(World par1World)
{
	super(par1World);
       this.getNavigator().setBreakDoors(true);
       this.tasks.addTask(0, new EntityAISwimming(this));
       this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.45D, false));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 0.45D, true));
       this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 0.45D));
       this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 0.45D, false));
       this.tasks.addTask(7, new EntityAIWander(this, 0.45D));
       this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(8, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
       this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
       this.setSize(0.6F, 1.8F);
}
 
Example 39
Project: Rediscovered-Mod-1.8   File: EntitySkeletonHorse.java   Source Code and License 6 votes vote down vote up
public EntitySkeletonHorse(World par1World)
{
    super(par1World);
    this.setSize(1.4F, 1.6F);
    this.getNavigator();
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityHorse.class, 1.0D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
    this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.applyEntityAI();
}
 
Example 40
Project: Rediscovered-Mod-1.8   File: EntityZombieHorse.java   Source Code and License 6 votes vote down vote up
public EntityZombieHorse(World par1World)
{
    super(par1World);
    this.setSize(1.4F, 1.6F);
    this.getNavigator();
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityHorse.class, 1.0D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
    this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.applyEntityAI();
}
 
Example 41
Project: ARKCraft-Code   File: EntityRaptorTest.java   Source Code and License 6 votes vote down vote up
public EntityRaptorTest(World world)
    {
        super(world);

//        this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));

        ((PathNavigateGround) this.getNavigator()).func_179690_a(true);
        this.tasks.addTask(0, new EntityAISwimming(this));
        this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 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));
        attackPlayerTarget = new EntityAINearestAttackableTarget(this, EntityPlayer.class, true);
        this.targetTasks.addTask(1, attackPlayerTarget);

        int p = 1;
        this.targetTasks.addTask(p++, new EntityDinoAIOwnerHurtByTarget(this));
        this.targetTasks.addTask(p++, new EntityDinoAIOwnerHurtTarget(this));
        this.targetTasks.addTask(p++, new EntityAIHurtByTarget(this, true));
        this.targetTasks.addTask(p++, new EntityDinoAITargetNonTamed(this, EntitySheep.class, false));

        type = RaptorType.ALBINO;
//        type.setRandomRaptorType(); // Set to a random type for now
    }
 
Example 42
Project: It-s-About-Time-Minecraft-Mod   File: EntityIatWolf.java   Source Code and License 6 votes vote down vote up
public EntityIatWolf(World world) {
	super(world);

	this.getNavigator().setAvoidsWater(true);
	this.tasks.addTask(1, new EntityAISwimming(this));
	this.tasks.addTask(2, aiSit);        
	this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
	this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
	this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
	this.tasks.addTask(6, new EntityAIMate(this, 1.0D));
	this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
	this.tasks.addTask(11, new EntityAILookIdle(this));
	this.targetTasks.addTask(1, new EntityAIOwnerHurtTarget(this));
	this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
	this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
	this.setTamed(false);
}
 
Example 43
Project: Resilience-Client-Source   File: EntityWolf.java   Source Code and License 6 votes vote down vote up
public EntityWolf(World par1World)
{
    super(par1World);
    this.setSize(0.6F, 0.8F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, this.aiSit);
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
    this.tasks.addTask(6, new EntityAIMate(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(8, new EntityAIBeg(this, 8.0F));
    this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(9, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
    this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
    this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntitySheep.class, 200, false));
    this.setTamed(false);
}
 
Example 44
Project: Resilience-Client-Source   File: EntityZombie.java   Source Code and License 6 votes vote down vote up
public EntityZombie(World par1World)
{
    super(par1World);
    this.getNavigator().setBreakDoors(true);
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
    this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
    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.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
    this.setSize(0.6F, 1.8F);
}
 
Example 45
Project: Resilience-Client-Source   File: EntityIronGolem.java   Source Code and License 6 votes vote down vote up
public EntityIronGolem(World par1World)
{
    super(par1World);
    this.setSize(1.4F, 2.9F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.9D, 32.0F));
    this.tasks.addTask(3, new EntityAIMoveThroughVillage(this, 0.6D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(5, new EntityAILookAtVillager(this));
    this.tasks.addTask(6, new EntityAIWander(this, 0.6D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
    this.tasks.addTask(8, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIDefendVillage(this));
    this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
    this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityLiving.class, 0, false, true, IMob.mobSelector));
}
 
Example 46
Project: UsefulPets   File: PetEntity.java   Source Code and License 6 votes vote down vote up
public PetEntity( World world )
{
	super( world );
	setSize( type.sizeX, type.sizeY );
	
	getNavigator().setAvoidsWater( true );
       tasks.addTask( 1, new EntityAISwimming( this ) );
       tasks.addTask( 2, aiSit );
       tasks.addTask( 3, new EntityAILeapAtTarget( this, 0.4F ) );
       tasks.addTask( 4, new EntityAIAttackOnCollide( this, 1.0D, true ) );
       tasks.addTask( 5, new FollowOwnerAI( this, 1.0D, 10.0F, 3.5F ) );
       tasks.addTask( 6, new FindItemsAi( this, 1.0D ) );
       tasks.addTask( 7, new EntityAIWander(this, 1.0D));
       tasks.addTask( 9, new EntityAIWatchClosest( this, EntityPlayer.class, 9.0F ) );
       targetTasks.addTask(1, new TargetHurtOwnerAI( this ) );
       targetTasks.addTask(3, new OwnerHurtTargetAI( this ) );
       targetTasks.addTask(2, new EntityAIHurtByTarget( this, true ) );
       targetTasks.addTask(4, new AttackNearbyHostileAi( this ) );
}
 
Example 47
Project: Rediscovered-Mod-1.8.8   File: EntitySkeletonHorse.java   Source Code and License 6 votes vote down vote up
public EntitySkeletonHorse(World par1World)
{
    super(par1World);
    this.setSize(1.4F, 1.6F);
    this.getNavigator();
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityHorse.class, 1.0D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
    this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.applyEntityAI();
}
 
Example 48
Project: Rediscovered-Mod-1.8.8   File: EntityZombieHorse.java   Source Code and License 6 votes vote down vote up
public EntityZombieHorse(World par1World)
{
    super(par1World);
    this.setSize(1.4F, 1.6F);
    this.getNavigator();
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityHorse.class, 1.0D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
    this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.applyEntityAI();
}
 
Example 49
Project: rpginventory   File: BeastMasterPet.java   Source Code and License 6 votes vote down vote up
private BeastMasterPet(World par1World) {
	super(par1World);
	this.moveSpeed = 0.35F;

	this.tasks.addTask(1, new EntityAISwimming(this));
	this.tasks.addTask(2, this.aiSit);
	this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
	this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
	this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 5.0F, 2.0F));
	this.tasks.addTask(6, new EntityAIMate(this, 1.0D));
	this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
	this.tasks.addTask(8, new EntityAITempt(this, 0.5D, RpgMastersAddon.whistle,false));
	this.tasks.addTask(9, new EntityAIWatchClosest(this,EntityLivingBase.class, 8.0F));
	this.tasks.addTask(9, new EntityAILookIdle(this));
	this.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
	this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
	this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));

	this.tasks.addTask(1, this.aiControlledByPlayer = new EntityAIControlledByPlayer(this, 0.1F));

	this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this,IMob.class, 0, true));
}
 
Example 50
Project: vintagecraft   File: EntityForestSpider.java   Source Code and License 6 votes vote down vote up
public EntityForestSpider(World worldIn) {
       super(worldIn);
       this.setSize(0.7F, 0.5F);
       this.targetTasks.taskEntries.clear();
       this.tasks.taskEntries.clear();
       

       this.tasks.addTask(1, new EntityAISwimming(this));
       this.tasks.addTask(2, this.field_175455_a);
       this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
       this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, true));
       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 EntityAIGoBackHome(this, 1D));
       this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false, new Class[0]));
       this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true));
       
       
}
 
Example 51
Project: EvangelionMod   File: LilithMob.java   Source Code and License 6 votes vote down vote up
public LilithMob(World par1World) {
super(par1World);
// TODO Auto-generated constructor stub
this.tasks.addTask(0, new EntityAISwimming(this));
      this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
      this.tasks.addTask(4, new EntityAIAttackOnCollide(this, EntityVillager.class, 1.0D, true));
      this.tasks.addTask(5, new EntityAIMoveTowardsRestriction(this, 1.0D));
      this.tasks.addTask(6, new EntityAIMoveThroughVillage(this, 1.0D, false));
      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.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
      this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
      this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, 0, false));
      this.setSize(0.6F, 1.8F);
  }
 
Example 52
Project: ZeroQuest   File: EntityKortor.java   Source Code and License 6 votes vote down vote up
public EntityKortor(World p_i1696_1_)
{
    super(p_i1696_1_);
    this.setSize(2F, 2F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, this.aiSit);
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
    this.tasks.addTask(6, new EntityAIMate(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.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
    this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
    this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
    this.setTamed(false);
    this.inventory = new InventoryPack(this);
}
 
Example 53
Project: ZeroQuest   File: EntityDestroZertum.java   Source Code and License 6 votes vote down vote up
public EntityDestroZertum(World p_i1696_1_)
{
    super(p_i1696_1_);
    this.setSize(0.6F, 1.5F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, this.aiSit);
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
    this.tasks.addTask(6, aiFetchBone);
    this.tasks.addTask(7, new EntityAIMate(this, 1.0D));
    this.tasks.addTask(8, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(9, new EntityCustomDeZAIBeg(this, 8.0F));
    this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(10, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
    this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
    this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntitySheep.class, 200, false));
    this.setTamed(false);
    this.inventory = new InventoryPack(this);
}
 
Example 54
Project: ZeroQuest   File: EntityKurr.java   Source Code and License 6 votes vote down vote up
public EntityKurr(World p_i1696_1_)
{
    super(p_i1696_1_);
    this.setSize(2.6F, 2.6F);
    this.stepHeight = 1;
    this.getNavigator().setBreakDoors(true);
    this.canBreatheUnderwater();
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    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.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
    this.experienceValue = 50;
}
 
Example 55
Project: ZeroQuest   File: EntityJakan.java   Source Code and License 6 votes vote down vote up
public EntityJakan(World p_i1696_1_)
{
    super(p_i1696_1_);
    this.setSize(2.6F, 2.6F);
    this.isImmuneToFire = true;
    this.stepHeight = 1;
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, this.aiSit);
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
    this.tasks.addTask(6, new EntityAIMate(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.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
    this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
    this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntitySheep.class, 200, false));
    this.setTamed(false);
    this.inventory = new InventoryPack(this);
}
 
Example 56
Project: ZeroQuest   File: EntityZertum.java   Source Code and License 6 votes vote down vote up
public EntityZertum(World p_i1696_1_)
{
    super(p_i1696_1_);
    this.setSize(0.6F, 1.5F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, this.aiSit);
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(5, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
    this.tasks.addTask(6, aiFetchBone);
    this.tasks.addTask(7, new EntityAIMate(this, 1.0D));
    this.tasks.addTask(8, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(9, new EntityCustomZAIBeg(this, 8.0F));
    this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(10, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIOwnerHurtByTarget(this));
    this.targetTasks.addTask(2, new EntityAIOwnerHurtTarget(this));
    this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(4, new EntityAITargetNonTamed(this, EntitySheep.class, 200, false));
    this.setTamed(false);
    this.inventory = new InventoryPack(this);
}
 
Example 57
Project: Rediscovered-Mod-1.7.10   File: EntityZombieHorse.java   Source Code and License 6 votes vote down vote up
public EntityZombieHorse(World par1World)
{
    super(par1World);
    this.setSize(1.4F, 1.6F);
    this.getNavigator();
    this.tasks.addTask(0, new EntityAISwimming(this));
    this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, 1.0D, false));
    this.tasks.addTask(3, new EntityAIAttackOnCollide(this, EntityHorse.class, 1.0D, true));
    this.tasks.addTask(4, new EntityAIMoveTowardsRestriction(this, 1.0D));
    this.tasks.addTask(5, new EntityAIMoveThroughVillage(this, 1.0D, false));
    this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(7, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));
    this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityHorse.class, 0, false));
}
 
Example 58
Project: ZeroQuest   File: EntityDestroZertum.java   Source Code and License 6 votes vote down vote up
public EntityDestroZertum(World par1World)
{
    super(par1World);
    this.setSize(0.6F, 0.8F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, this.aiCSit);
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(5, new EntityCustomAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
    this.tasks.addTask(6, new EntityAIMate(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(8, new EntityDAIBeg(this, 8.0F));
    this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(9, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityCustomAIOwnerHurtByTarget(this));
    this.targetTasks.addTask(2, new EntityCustomAIOwnerHurtTarget(this));
    this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(4, new EntityCustomAITargetNonTamed(this, EntitySheep.class, 200, false));
    this.setTamed(false);
    this.inventory = new InventoryDestroPack(this);
}
 
Example 59
Project: ZeroQuest   File: EntityRedZertum.java   Source Code and License 6 votes vote down vote up
public EntityRedZertum(World par1World)
{
    super(par1World);
    this.setSize(0.6F, 0.8F);
    this.getNavigator().setAvoidsWater(true);
    this.tasks.addTask(1, new EntityAISwimming(this));
    this.tasks.addTask(2, this.aiCSit);
    this.tasks.addTask(3, new EntityAILeapAtTarget(this, 0.4F));
    this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, true));
    this.tasks.addTask(5, new EntityCustomAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
    this.tasks.addTask(6, new EntityAIMate(this, 1.0D));
    this.tasks.addTask(7, new EntityAIWander(this, 1.0D));
    this.tasks.addTask(8, new EntityRZAIBeg(this, 8.0F));
    this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
    this.tasks.addTask(9, new EntityAILookIdle(this));
    this.targetTasks.addTask(1, new EntityCustomAIOwnerHurtByTarget(this));
    this.targetTasks.addTask(2, new EntityCustomAIOwnerHurtTarget(this));
    this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
    this.targetTasks.addTask(4, new EntityCustomAITargetNonTamed(this, EntitySheep.class, 200, false));
    this.setTamed(false);
    this.inventory = new InventoryRedPack(this);
}
 
Example 60
Project: ZeroQuest   File: EntityJakan.java   Source Code and License 6 votes vote down vote up
public EntityJakan(World par1World) {
	super(par1World);
	this.setSize(2.5F, 2.5F);
	this.isImmuneToFire = true;
       this.getNavigator().setAvoidsWater(true);
       this.tasks.addTask(1, new EntityAISwimming(this));
       this.tasks.addTask(2, this.aiCSit);
       this.tasks.addTask(3, new EntityAIAttackOnCollide(this, 1.0D, true));
       this.tasks.addTask(4, new EntityCustomAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
       this.tasks.addTask(5, new EntityAIMate(this, 1.0D));
       this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
       this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
       this.tasks.addTask(7, new EntityAILookIdle(this));
       this.targetTasks.addTask(1, new EntityCustomAIOwnerHurtByTarget(this));
       this.targetTasks.addTask(2, new EntityCustomAIOwnerHurtTarget(this));
       this.targetTasks.addTask(3, new EntityAIHurtByTarget(this, true));
       this.setTamed(false);
}