Guest User

Untitled

a guest
Nov 7th, 2016
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package thecraft.mod.common;
  2.  
  3. import net.minecraft.entity.EntityLiving;
  4. import net.minecraft.entity.SharedMonsterAttributes;
  5. import net.minecraft.entity.item.EntityItem;
  6. import net.minecraft.entity.monster.EntityMob;
  7. import net.minecraft.item.Item;
  8. import net.minecraft.util.ResourceLocation;
  9. import net.minecraft.world.World;
  10.  
  11. public class Mobdropewilitesworld extends EntityMob
  12. {
  13.  
  14. public Mobdropewilitesworld(World world)
  15. {
  16. super(world);
  17. }
  18. public void applyEntityAttributes()
  19. {
  20. super.applyEntityAttributes();
  21. this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(37.5D);
  22. this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(8D);
  23. this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(2D);
  24.  
  25. }
  26.  
  27. public Item getDropItem()
  28. {
  29. return Item.getItemFromBlock(ewifaction.ewilitesworld);
  30. }
  31. }
RAW Paste Data