Guest User

Untitled

a guest
Jul 28th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.78 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4.  
  5. public class EntityHenry extends EntityLiving {
  6.  
  7.     public EntityHenry(World world) {
  8.         super(world);
  9.         //Set the texture
  10.         texture = "/ZombieDiamond.png";
  11.         //Set the size of the hitbox
  12.         setSize(6F,6F);
  13.         //Set the speed of the mob
  14.         //NOTE: 0 = 0% speed, 1 = 100%, 0.75 = 75%
  15.         moveSpeed = 0.46F;
  16.         //Set how much health the mob has
  17.         health = 100;
  18.     }
  19.  
  20.     public void writeEntityToNBT(NBTTagCompound nbttagcompound) {
  21.         super.writeEntityToNBT(nbttagcompound);
  22.     }
  23.  
  24.     public void readEntityFromNBT(NBTTagCompound nbttagcompound) {
  25.         super.readEntityFromNBT(nbttagcompound);
  26.     }
  27.  
  28.     //Need audiomod for the next 3. Remove them if you want a silent mob (except for the sound of foot steps)
  29.     //You can also go into the entity files for other mobs and take their sounds if you want (the way I did in the video)
  30.     protected String getLivingSound() {
  31.         //This is what sound the mob makes when living
  32.         return "mob.zombie";
  33.     }
  34.  
  35.     protected String getHurtSound() {
  36.         //This is what sound the mob makes when getting hurt
  37.         return "random.break";
  38.     }
  39.  
  40.     protected String getDeathSound() {
  41.         //This is what sound the mob makes when dying
  42.         return "mob.zombiedeath";
  43.     }
  44.  
  45.     //Here's where you change the volume of the mob's sounds
  46.     protected float getSoundVolume() {
  47.         return 0.4F;
  48.     }
  49.  
  50.     //Here you define what items or blocks you want the mob to drop when killed
  51.     protected void dropFewItems() {
  52.         dropItem(Item.plateDiamond.shiftedIndex, 0-1);
  53.         dropItem(Item.helmetDiamond.shiftedIndex, 0-1);
  54.         dropItem(Item.legsDiamond.shiftedIndex, 0-1);
  55.         dropItem(Item.bootsDiamond.shiftedIndex, 0-1);
  56.     }
  57.  
  58.     public String Version() {
  59.         return "3.14159265";
  60.     }
  61.  
  62.     public String getVersion() {
  63.         return "1.0.0";
  64.     }
  65.  
  66.     public void load(){
  67.     }
  68.  
  69. }
Advertisement
Add Comment
Please, Sign In to add comment