This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well!
Create Cutting
Link to create-cutting
Die Cutting Mechanik ist vom Typ IRecipeManager und implementiert alle Methoden, die IRecipeManager zur Verfügung stehen wie removeRecipe()
und removeAll()
.
Methoden
Link to methoden
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>);
Remove Recipes
Link to remove-recipes
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()