How to Create a Crafting Recipe

Crafting recipes are an important part of an armor mod, or useful tools for other types. Here’s a quick how-to on how to create one. Note that tempering items will be covered in another tutorial.

The basic steps, before we go into detail.

  1. Create recipe
  2. Decide what it produces
  3. Decide materials it requires
  4. Choose to make the recipe disappear when you don’t have the materials.
  5. Save.

 

Creating your recipe

 

  • Create your recipe: duplicate an existing one or create one from scratch.Before you can do anything, you first must create a new recipe. You can find recipes in the Object Window > Constructable Object.
    Image1

    You can find all crafting recipes and tempering recipes under this section. Tempering is a little bit different, so we want the recipes. I find it easiest looking for a recipe that’s fairly close to what my finished recipe will be. For instance, if I wanted to have an item that required five iron ingot and be workable from forges, I’d probably choose one of the iron armor or weapon items.

Image2

  • Give your new recipe a unique identifier, something like RecipeNameOfModItem.
    Personally, I usually go by the default naming scheme, especially if I’m doing a big crafting project, but ifs up to you if you want your recipes to display all together or with similar times.Image5
  • Choose your required items.
    Image6

    The required item list is where all the items you need to craft the recipe is located. You can add a new requirement by right-clicking in the Required Item List and selecting New. Highlight the new addition. To change the default item, use the drop down menu to the right and find the item you want. Change the number required just below.
  • Change the created object.
  • Image8
    You can also change the number of items created just below. It’s fairly straightforward.
  • If you want this recipe to be creatable from another option, like the alchemy table, change the workbench keyword.
    Image9

 

Making a recipe appear only when you have the right materials

Next, consider adding conditions to the recipe that hide it in the crafting menu until you have the items required for making it. This reduces clutter in the crafting menu, especially since so many crafting mods don’t do this, resulting in very cluttered crafting categories. If this is an option you wish to implement, consider adding an in-game book listing all of the recipes that are available in your mod for easier discovery and use. 
Image10

  • Look below where it says “Match conditions” and right-click, add new.
  • Change the condition function to GetItemCount
  • Click the button where it says INVALID. That’s the function info. Click it and select one of the required items in the recipe.
    Image13
  • The Comparison menu has a list of “greater than” “less than” “equal to” et ctr items. What you’ll want is the “Equal to or greater than” function.
  • Change the value to the number of items you want in your inventory before the recipe will show up.
    Image14

You can customize this so you can have your recipe show up when you have only one of the required items or only show up until you have all of the required materials and are ready to create it. Add more conditions for each item.

And that’s it! Stay tuned for Tempered items.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.