Advertisement
Melontank

Melon Mob Entity

Jul 5th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.04 KB | None | 0 0
  1. package Melontank.mod.Meloncraft.entity;
  2.  
  3. import net.minecraft.entity.EnumCreatureAttribute;
  4. import net.minecraft.entity.monster.EntityMob;
  5. import net.minecraft.item.Item;
  6. import net.minecraft.world.World;
  7.  
  8. public class EntityMelonMob extends EntityMob{
  9.  
  10.     public EntityMelonMob(World par1World) {
  11.         super(par1World);
  12.         this.moveSpeed = 0.5F;
  13.         this.texture = "/Meloncraft/MelonMob.png";
  14.     }
  15.  
  16.     @Override
  17.     public int getMaxHealth() {
  18.        
  19.         return 20;
  20.     }
  21.     protected String getLivingSound()
  22.     {
  23.         return "mob.cow.say";
  24.     }
  25.     protected String getHurtSound()
  26.     {
  27.         return "mob.zombie.hurt";
  28.     }
  29.     protected String getDeathSound()
  30.     {
  31.         return "mob.zombie.death";
  32.     }
  33.     protected void playStepSound(int par1, int par2, int par3, int par4)
  34.     {
  35.         this.playSound("mob.zombie.step", 0.2F, 1.0F);
  36.     }
  37.     protected int getDropItemId()
  38.     {
  39.         return Item.speckledMelon.itemID;
  40.     }
  41.     public EnumCreatureAttribute getCreatureAttribute()
  42.     {
  43.         return EnumCreatureAttribute.ARTHROPOD;
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement