Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Melontank.mod.Meloncraft.entity;
- import net.minecraft.entity.EnumCreatureAttribute;
- import net.minecraft.entity.monster.EntityMob;
- import net.minecraft.item.Item;
- import net.minecraft.world.World;
- public class EntityMelonMob extends EntityMob{
- public EntityMelonMob(World par1World) {
- super(par1World);
- this.moveSpeed = 0.5F;
- this.texture = "/Meloncraft/MelonMob.png";
- }
- @Override
- public int getMaxHealth() {
- return 20;
- }
- protected String getLivingSound()
- {
- return "mob.cow.say";
- }
- protected String getHurtSound()
- {
- return "mob.zombie.hurt";
- }
- protected String getDeathSound()
- {
- return "mob.zombie.death";
- }
- protected void playStepSound(int par1, int par2, int par3, int par4)
- {
- this.playSound("mob.zombie.step", 0.2F, 1.0F);
- }
- protected int getDropItemId()
- {
- return Item.speckledMelon.itemID;
- }
- public EnumCreatureAttribute getCreatureAttribute()
- {
- return EnumCreatureAttribute.ARTHROPOD;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement