This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well!

Create Mechanical Crafter

Link to create-mechanical-crafter

The Mechanical Crafter is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe() and removeAll().

The following script will add a recipe that will output a Diamond when 3 sticks are put in the given pattern in the Mechanical Crafter.

ZenScript
Copy
// <recipetype:create:mechanical_crafting>.addRecipe(String name, IItemStack output, IIngredient[][] ingredients)

<recipetype:create:mechanical_crafting>.addRecipe("mechanical_crafter_test", <item:minecraft:diamond>, [[<item:minecraft:stick>, <item:minecraft:air>, <item:minecraft:stick>], [<item:minecraft:air>, <item:minecraft:stick>, <item:minecraft:air>]]);

The following script will remove all Mechanical Crafter recipes that output a Flywheel.

ZenScript
Copy
// <recipetype:create:mechanical_crafting>.removeRecipe(IItemStack output)

<recipetype:create:mechanical_crafting>.removeRecipe(<item:create:flywheel>);