Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.Random;
- //Referenced classes of package net.minecraft.src:
- // EntityMob, World, Item, MathHelper
- public class EntityDragon extends EntityMob
- {
- public EntityDragon(World world)
- {
- super(world);
- texture = "/mob/Dragon.png"; //This is the texture of the mob, It is in the "Temp" Folder
- moveSpeed = 1.0F;//This is how fast it moves
- setSize(2F, 2F);
- }
- protected String getLivingSound()
- {
- return "mob.zombie";
- }
- protected String getHurtSound()
- {
- return "mob.zombiehurt";
- }
- protected String getDeathSound()
- {
- return "mob.zombiedeath";
- }
- protected int getDropItemId()
- {
- return 352; //This is what the Monster will drop
- }
- public boolean getCanSpawnHere()
- {
- return rand.nextInt(20) == 0 && super.getCanSpawnHere() && worldObj.difficultySetting > 0;
- }
- public int getMaxSpawnedInChunk()
- {
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement