Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- public class EntityHenry extends EntityLiving {
- public EntityHenry(World world) {
- super(world);
- //Set the texture
- texture = "/ZombieDiamond.png";
- //Set the size of the hitbox
- setSize(6F,6F);
- //Set the speed of the mob
- //NOTE: 0 = 0% speed, 1 = 100%, 0.75 = 75%
- moveSpeed = 0.46F;
- //Set how much health the mob has
- health = 100;
- }
- public void writeEntityToNBT(NBTTagCompound nbttagcompound) {
- super.writeEntityToNBT(nbttagcompound);
- }
- public void readEntityFromNBT(NBTTagCompound nbttagcompound) {
- super.readEntityFromNBT(nbttagcompound);
- }
- //Need audiomod for the next 3. Remove them if you want a silent mob (except for the sound of foot steps)
- //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)
- protected String getLivingSound() {
- //This is what sound the mob makes when living
- return "mob.zombie";
- }
- protected String getHurtSound() {
- //This is what sound the mob makes when getting hurt
- return "random.break";
- }
- protected String getDeathSound() {
- //This is what sound the mob makes when dying
- return "mob.zombiedeath";
- }
- //Here's where you change the volume of the mob's sounds
- protected float getSoundVolume() {
- return 0.4F;
- }
- //Here you define what items or blocks you want the mob to drop when killed
- protected void dropFewItems() {
- dropItem(Item.plateDiamond.shiftedIndex, 0-1);
- dropItem(Item.helmetDiamond.shiftedIndex, 0-1);
- dropItem(Item.legsDiamond.shiftedIndex, 0-1);
- dropItem(Item.bootsDiamond.shiftedIndex, 0-1);
- }
- public String Version() {
- return "3.14159265";
- }
- public String getVersion() {
- return "1.0.0";
- }
- public void load(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment