Tutorial 8: Furnace Recipes

In this tutorial I will be showing you how to make a custom furnace recipe.  Let's begin!

Create a new class and call it something along the lines of ModRecipes. This is where we are going to be adding the Furnace Recipes. This class does not need to extend off of anything else.
In this class we need a new public static method, this is so we can call it in our initRegistries, in this example I will just call it init
public class ModRecipes
{
    public static void init()
    {

    }
}
Now we need to add a recipe to the furnace, to do this we need to create a new GameRegistry like so:
public static void init()
{
    GameRegistry.addSmelting(BlockInit.TUTORIAL_BLOCK, new ItemStack(ItemInit.TUTORIAL_ITEM), 0.1F);
    GameRegistry.addSmelting(ItemInit.TUTORIAL_ITEM, new ItemStack(BlockInit.TUTORIAL_BLOCK), 0.1F);
}
        
In this example I have made two recipes, If I put my tutorial_item it will spit out a tutorial_block, and it does the same in the other way.
In this case they both give exp of a value of 0.1.
Just like the previous tutorial, we have to register this class, otherwise nothing will happen when we run the game.
To do this go into your Main class and place this line of code inside of your FMLInitializationEvent
@EventHandler
public static void initRegistries(FMLInitializationEvent event)
{
    ModRecipes.init();
}
If you have things in here don't remove them and replace them with this, for this example I don't have anything else to register in here, that is why it is blank!
Now! Go into your game and test if it works! In my case my item will give me my block, like so:

Finally we're finished!  Thank you for following this tutorial, and remember to look out for the next one!
- Mr. Pineapple