Crafting Recipes

Crafting Recipes: JSON

Crafting recipes defined for CML should follow this template:

This is a somewhat complex example. Things like `"extras"`, having multiple ingredients, or having multiple recipes are not required.

If you would like the end result to look nice, make sure everything has an extra indent (like in the example above).

Defining in CML

Defining crafting recipes in CML is by far the easiest feature to use. All you need to do is create a .json file that is named the same as the file in the Scrap Mechanic CraftingRecipes folder. E.g. CraftBot →, or Refinery →. Supported crafting lists:

cookbot.json   --CookBot craftbot.json  --CraftBot dispenser.json --Mechanic Workshop dressbot.json  --DressBot hideout.json   --Hideout item_names.json --??? refinery.json  --Refinery undecided.json --Recipes with no home workbench.json --Simple Workbench

An Example

The following files have been directly copied from the Example Mod.

Future plans

With the recent addition of plugins, you can expect a very simplistic Crafting Recipe manager plugin. It is meant to serve as an example and help people learn to interface with CML, but will also serve its function as a means to easily change your crafting recipes.

CML will SoonTM automatically replace item names (as seen in survival_items.lua) surrounded by |/ and \| with their proper UUID. E.g.  would be replaced by.