Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package CyborgCreeperPackage;
- import net.minecraft.entity.ai.*;
- import net.minecraft.entity.monster.EntityMob;
- import net.minecraft.entity.passive.EntityOcelot;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.item.Item;
- import net.minecraft.world.World;
- import net.minecraft.item.*;
- import net.minecraft.block.*;
- public class EntityCyborgCreeper extends EntityMob {
- public EntityCyborgCreeper(World par1World) {
- super(par1World);
- this.texture = "/textures/mobs/Cyborg Creeper.png";
- this.setSize(0.5F, 2.0F);
- this.tasks.addTask(1, new EntityAISwimming(this));
- this.tasks.addTask(2, new EntityAIAvoidEntity(this, EntityOcelot.class, 6.0F, 0.25F, 0.3F));
- this.tasks.addTask(3, new EntityAIAttackOnCollide(this, 0.25F, false));
- this.tasks.addTask(4, new EntityAIWander(this, 0.4F));
- this.tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
- this.tasks.addTask(5, new EntityAILookIdle(this));
- this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 16.0F, 0, true));
- this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
- }
- public boolean isAIEnabled()
- {
- return true;
- }
- public int func_82143_as()
- {
- return this.getAttackTarget() == null ? 3 : 3 + (this.health - 2);
- }
- public int getMaxHealth() {
- return 100;
- }
- protected void dropFewItems(boolean par1, int par2)
- {
- this.dropItem(Item.ingotIron.itemID, 5);
- this.dropItem(Item.gunpowder.itemID, 10);
- this.dropItem(Item.emerald.itemID, 1);
- }
- }package CyborgCreeperPackage;
- import net.minecraft.entity.ai.*;
- import net.minecraft.entity.monster.EntityMob;
- import net.minecraft.entity.passive.EntityOcelot;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.item.Item;
- import net.minecraft.world.World;
- import net.minecraft.item.*;
- import net.minecraft.block.*;
- public class EntityCyborgCreeper extends EntityMob {
- public EntityCyborgCreeper(World par1World) {
- super(par1World);
- this.texture = "/mobs/CyborgCreeper.png";
- this.setSize(0.5F, 2.0F);
- this.tasks.addTask(1, new EntityAISwimming(this));
- this.tasks.addTask(2, new EntityAIAvoidEntity(this, EntityOcelot.class, 6.0F, 0.25F, 0.3F));
- this.tasks.addTask(3, new EntityAIAttackOnCollide(this, 0.25F, false));
- this.tasks.addTask(4, new EntityAIWander(this, 0.4F));
- this.tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
- this.tasks.addTask(5, new EntityAILookIdle(this));
- this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 16.0F, 0, true));
- this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));
- }
- public boolean isAIEnabled()
- {
- return true;
- }
- public int func_82143_as()
- {
- return this.getAttackTarget() == null ? 3 : 3 + (this.health - 2);
- }
- public int getMaxHealth() {
- return 100;
- }
- protected void dropFewItems(boolean par1, int par2)
- {
- this.dropItem(Item.ingotIron.itemID, 5);
- this.dropItem(Item.gunpowder.itemID, 10);
- this.dropItem(Item.emerald.itemID, 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement