public EntitySnowman(World par1World) : base(par1World) { Texture = "/mob/snowman.png"; SetSize(0.4F, 1.8F); GetNavigator().Func_48664_a(true); Tasks.AddTask(1, new EntityAIArrowAttack(this, 0.25F, 2, 20)); Tasks.AddTask(2, new EntityAIWander(this, 0.2F)); Tasks.AddTask(3, new EntityAIWatchClosest(this, typeof(net.minecraft.src.EntityPlayer), 6F)); Tasks.AddTask(4, new EntityAILookIdle(this)); TargetTasks.AddTask(1, new EntityAINearestAttackableTarget(this, typeof(net.minecraft.src.EntityMob), 16F, 0, true)); }
public EntityCreeper(World par1World) : base(par1World) { Texture = "/mob/creeper.png"; Tasks.AddTask(1, new EntityAISwimming(this)); Tasks.AddTask(2, new EntityAICreeperSwell(this)); Tasks.AddTask(3, new EntityAIAvoidEntity(this, typeof(net.minecraft.src.EntityOcelot), 6F, 0.25F, 0.3F)); Tasks.AddTask(4, new EntityAIAttackOnCollide(this, 0.25F, false)); Tasks.AddTask(5, new EntityAIWander(this, 0.2F)); Tasks.AddTask(6, new EntityAIWatchClosest(this, typeof(net.minecraft.src.EntityPlayer), 8F)); Tasks.AddTask(6, new EntityAILookIdle(this)); TargetTasks.AddTask(1, new EntityAINearestAttackableTarget(this, typeof(net.minecraft.src.EntityPlayer), 16F, 0, true)); TargetTasks.AddTask(2, new EntityAIHurtByTarget(this, false)); }
public EntitySkeleton(World par1World) : base(par1World) { Texture = "/mob/skeleton.png"; MoveSpeed = 0.25F; Tasks.AddTask(1, new EntityAISwimming(this)); Tasks.AddTask(2, new EntityAIRestrictSun(this)); Tasks.AddTask(3, new EntityAIFleeSun(this, MoveSpeed)); Tasks.AddTask(4, new EntityAIArrowAttack(this, MoveSpeed, 1, 60)); Tasks.AddTask(5, new EntityAIWander(this, MoveSpeed)); Tasks.AddTask(6, new EntityAIWatchClosest(this, typeof(net.minecraft.src.EntityPlayer), 8F)); Tasks.AddTask(6, new EntityAILookIdle(this)); TargetTasks.AddTask(1, new EntityAIHurtByTarget(this, false)); TargetTasks.AddTask(2, new EntityAINearestAttackableTarget(this, typeof(net.minecraft.src.EntityPlayer), 16F, 0, true)); }
public EntityOcelot(World par1World) : base(par1World) { Texture = "/mob/ozelot.png"; SetSize(0.6F, 0.8F); GetNavigator().Func_48664_a(true); Tasks.AddTask(1, new EntityAISwimming(this)); Tasks.AddTask(2, AiSit); Tasks.AddTask(3, AiTempt = new EntityAITempt(this, 0.18F, Item.FishRaw.ShiftedIndex, true)); Tasks.AddTask(4, new EntityAIAvoidEntity(this, typeof(net.minecraft.src.EntityPlayer), 16F, 0.23F, 0.4F)); Tasks.AddTask(5, new EntityAIFollowOwner(this, 0.3F, 10F, 5F)); Tasks.AddTask(6, new EntityAIOcelotSit(this, 0.4F)); Tasks.AddTask(7, new EntityAILeapAtTarget(this, 0.3F)); Tasks.AddTask(8, new EntityAIOcelotAttack(this)); Tasks.AddTask(9, new EntityAIMate(this, 0.23F)); Tasks.AddTask(10, new EntityAIWander(this, 0.23F)); Tasks.AddTask(11, new EntityAIWatchClosest(this, typeof(net.minecraft.src.EntityPlayer), 10F)); TargetTasks.AddTask(1, new EntityAITargetNonTamed(this, typeof(net.minecraft.src.EntityChicken), 14F, 750, false)); }
public EntityIronGolem(World par1World) : base(par1World) { Field_48119_b = 0; VillageObj = null; Texture = "/mob/villager_golem.png"; SetSize(1.4F, 2.9F); GetNavigator().Func_48664_a(true); Tasks.AddTask(1, new EntityAIAttackOnCollide(this, 0.25F, true)); Tasks.AddTask(2, new EntityAIMoveTowardsTarget(this, 0.22F, 32F)); Tasks.AddTask(3, new EntityAIMoveThroughVillage(this, 0.16F, true)); Tasks.AddTask(4, new EntityAIMoveTwardsRestriction(this, 0.16F)); Tasks.AddTask(5, new EntityAILookAtVillager(this)); Tasks.AddTask(6, new EntityAIWander(this, 0.16F)); Tasks.AddTask(7, new EntityAIWatchClosest(this, typeof(net.minecraft.src.EntityPlayer), 6F)); Tasks.AddTask(8, new EntityAILookIdle(this)); TargetTasks.AddTask(1, new EntityAIDefendVillage(this)); TargetTasks.AddTask(2, new EntityAIHurtByTarget(this, false)); TargetTasks.AddTask(3, new EntityAINearestAttackableTarget(this, typeof(net.minecraft.src.EntityMob), 16F, 0, false, true)); }
public EntityZombie(World par1World) : base(par1World) { Texture = "/mob/zombie.png"; MoveSpeed = 0.23F; AttackStrength = 4; GetNavigator().SetBreakDoors(true); Tasks.AddTask(0, new EntityAISwimming(this)); Tasks.AddTask(1, new EntityAIBreakDoor(this)); Tasks.AddTask(2, new EntityAIAttackOnCollide(this, typeof(net.minecraft.src.EntityPlayer), MoveSpeed, false)); Tasks.AddTask(3, new EntityAIAttackOnCollide(this, typeof(net.minecraft.src.EntityVillager), MoveSpeed, true)); Tasks.AddTask(4, new EntityAIMoveTwardsRestriction(this, MoveSpeed)); Tasks.AddTask(5, new EntityAIMoveThroughVillage(this, MoveSpeed, false)); Tasks.AddTask(6, new EntityAIWander(this, MoveSpeed)); Tasks.AddTask(7, new EntityAIWatchClosest(this, typeof(net.minecraft.src.EntityPlayer), 8F)); Tasks.AddTask(7, new EntityAILookIdle(this)); TargetTasks.AddTask(1, new EntityAIHurtByTarget(this, false)); TargetTasks.AddTask(2, new EntityAINearestAttackableTarget(this, typeof(net.minecraft.src.EntityPlayer), 16F, 0, true)); TargetTasks.AddTask(2, new EntityAINearestAttackableTarget(this, typeof(net.minecraft.src.EntityVillager), 16F, 0, false)); }
public EntityWolf(World par1World) : base(par1World) { LooksWithInterest = false; Texture = "/mob/wolf.png"; SetSize(0.6F, 0.8F); MoveSpeed = 0.3F; GetNavigator().Func_48664_a(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, MoveSpeed, true)); Tasks.AddTask(5, new EntityAIFollowOwner(this, MoveSpeed, 10F, 2.0F)); Tasks.AddTask(6, new EntityAIMate(this, MoveSpeed)); Tasks.AddTask(7, new EntityAIWander(this, MoveSpeed)); Tasks.AddTask(8, new EntityAIBeg(this, 8F)); Tasks.AddTask(9, new EntityAIWatchClosest(this, typeof(net.minecraft.src.EntityPlayer), 8F)); Tasks.AddTask(9, new EntityAILookIdle(this)); TargetTasks.AddTask(1, new EntityAIOwnerHurtByTarget(this)); TargetTasks.AddTask(2, new EntityAIOwnerHurtTarget(this)); TargetTasks.AddTask(3, new EntityAIHurtByTarget(this, true)); TargetTasks.AddTask(4, new EntityAITargetNonTamed(this, typeof(net.minecraft.src.EntitySheep), 16F, 200, false)); }