if(held == new ItemStack(Items.bone)){
ItemStack out = new ItemStack(Items.iron_ingot);
EntityItem entity = new EntityItem(world, player.posX, player.posY, player.posZ, out);
world.spawnEntityInWorld(entity);
}
Im not sure what you are triing to do there.
if(held.getItem()==Items.bone);