Create does not have built in mod support, you will need CreateTweakerfor this to work!

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().

Methods

Add Recipe

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>]]);

Remove Recipes

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>);