Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase)
- {
- if (par2EntityLivingBase.getHealth() == 0 && !par2EntityLivingBase.isEntityAlive()){
- ModLoader.getMinecraftInstance().thePlayer.addChatMessage("YOU KILLED SOMETHING");
- par3EntityLivingBase.heal(1);
- }
- par1ItemStack.damageItem(1, par3EntityLivingBase);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment