So I was bored and decided to make a mod that would allow me to craft spawn eggs. The only issue I have is that I have no clue how to edit the NBT of the output so it sets the egg to spawn a specified mob.
GameRegistry.addShapedRecipe(new ItemStack(Items.SPAWN_EGG, 1, 93), new Object[] { "FEF", "EIE", "FEF", 'E', Items.EGG, 'F', Items.EMERALD, 'I', Items.FEATHER });
The recipe is registered and works but I end up with a blank spawn egg. (The above is supposed to allow me to craft a chicken egg)