daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest May 22nd, 2014 897 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.kazeyometest.tuto.common;
  2.  
  3. import net.minecraft.entity.SharedMonsterAttributes;
  4. import net.minecraft.entity.monster.EntityMob;
  5. import net.minecraft.init.Items;
  6. import net.minecraft.item.Item;
  7. import net.minecraft.world.World;
  8.  
  9. public class MobTest extends EntityMob {
  10.  
  11.         public MobTest (World par1World){
  12.                 super(par1World);
  13.         }
  14.  
  15.         public void applyEntityAttributes() {
  16.                 super.applyEntityAttributes();
  17.                 this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30D);
  18.                 this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(4D);
  19.         }
  20.  
  21.         public Item getDropItem() {
  22.                 return Items.diamond;
  23.         }
  24.  
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top