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

Der Mechanical Crafter ist vom Typ IRecipeManager und implementiert alle Methoden, die IRecipeManager's zur Verfügung stehen wie removeRecipe() und removeAll().

Rezept hinzufügen

Link to rezept-hinzufügen

Das folgende Skript fügt ein Rezept hinzu, das einen Diamanten ausgibt, wenn 3 Stöcke in das angegebene Muster des Mechanical Crafters gelegt werden.

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