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

Die Cutting Mechanik ist vom Typ IRecipeManager und implementiert alle Methoden, die IRecipeManager 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 ein Glasstück mit einer Dauer von 100 Ticks geschnitten wird.

ZenScript
Copy
// <recipetype:create:cutting>.addRecipe(String name, IItemStack output, IIngredient input, @Optional(100) int duration)

<recipetype:create:cutting>.addRecipe("cutting_test", <item:minecraft:diamond>, <item:minecraft:glass>);

The following script will remove all Cutting recipes that output a Stripped Jungle Wood.

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

<recipetype:create:cutting>.removeRecipe(<item:minecraft:stripped_jungle_wood>);

Get a Processing Recipe Factory

Link to get-a-processing-recipe-factory

You can get a ProcessingRecipeFactory of this recipe type like so:

ZenScript
Copy
// <recipetype:create:cutting>.factory() as ProcessingRecipeFactory

<recipetype:create:cutting>.factory()