This doesn't drop a skull, though from what I can see it should.
//"skeleton", "wither", "zombie", "char", "creeper", "dragon"
@SubscribeEvent
public void entityDrops(LivingDropsEvent event)
{
Minecraft mc = Minecraft.getMinecraft();
EntityPlayer plr = mc.thePlayer;
if(plr.inventory.getCurrentItem().getItem().equals(BrandyWeapons.vorpalBlade))
{
if(event.getEntity().getEntityId() == 51){
event.getEntity().entityDropItem(new ItemStack(Items.SKULL, 1, 0), 0);}
if(event.getEntity().getEntityId() == 5){
event.getEntity().entityDropItem(new ItemStack(Items.SKULL, 1, 1), 0);}
if(event.getEntity().getEntityId() == 54){
event.getEntity().entityDropItem(new ItemStack(Items.SKULL, 1, 2), 0);}
if(event.getEntity() == plr){
event.getEntity().entityDropItem(new ItemStack(Items.SKULL, 1, 3), 0);}
if(event.getEntity().getEntityId() == 50){
event.getEntity().entityDropItem(new ItemStack(Items.SKULL, 1, 4), 0);}
if(event.getEntity().getEntityId() == 63){
event.getEntity().entityDropItem(new ItemStack(Items.SKULL, 1, 5), 0);}
}
}
Wondering if it is because I am using EntityIDs?