Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase mobBase, EntityLivingBase playerBase)
- {
- if(Math.random() < 0.05d ) {
- if(!mobBase.worldObj.isRemote){
- par1ItemStack.damageItem(this.getMaxDamage() + 1, playerBase);
- mobBase.setDead();
- ItemStack stack = new ItemStack(ModItems.interestingStone, 1);
- EntityItem eItem = new EntityItem(playerBase.worldObj, playerBase.posX, playerBase.posY + 1, playerBase.posZ, stack);
- playerBase.worldObj.spawnEntityInWorld(eItem);
- }
- }
- return true;
- }1)
Advertisement
Add Comment
Please, Sign In to add comment