This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well
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.
// <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.
// <recipetype:create:mechanical_crafting>.removeRecipe(IItemStack output)
<recipetype:create:mechanical_crafting>.removeRecipe(<item:create:flywheel>);