@SubscribeEvent
public void addEntityDrop50(LivingDropsEvent event)
{
if (event.getEntity() instanceof EntityCow)
{
if (event.getSource() != null && event.getSource().getEntity() instanceof EntityPlayer)
{
EntityPlayer player = ((EntityPlayer) event.getSource().getEntity());
if (player != null)
{
ItemStack holding = player.inventory.getStackInSlot(player.inventory.currentItem);
if (holding != null && holding.getItem() instanceof MASoulHarvester)
{
ItemStack itemstack = new ItemStack(MASouls.CowSoul, 1);
event.getDrops().add(new EntityItem(event.getEntity().worldObj, event.getEntity().posX, event.getEntity().posY, event.getEntity().posZ, itemstack));
}
}
}
}
}
Jeeezz... Go back to Java tutorials. (I am serious dude, you won't get far with copy pasting from forums, and "that's how I learn" is no excuse).