Hello, I've been trying to put bones to a vanilla mob.
I did some research, and tried this:
@ForgeSubscribe
public void playerKilledSheep(LivingDropsEvent event)
{
System.out.println("Killed something");
if(event.entityLiving instanceof EntitySheep)
{
System.out.println("Killed a Sheep");
event.entityLiving.dropItem(Item.bone.shiftedIndex, 1);
}
}
I have an error on the "shiftedIndex" part, but it doesn't even post something in the console, means it doesn't even detect if I killed something or not.
Please help.
Best regards,
MarioErmando