This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well!
Create Pressing
Link to create-pressing
Die Pressing 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 und einen Apfel mit einer Chance von 45% ausgibt, in der ein Stück Erde mit einer Dauer von 100 Ticks zerdrückt wird.
ZenScript Copy// <recipetype:create:pressing>.addRecipe(String name, MCWeightedItemStack[] output, IIngredientWithAmount input, @Optional(100) int duration)
<recipetype:create:pressing>.addRecipe("pressing_test", [<item:minecraft:diamond>, <item:minecraft:apple> % 45], <item:minecraft:dirt>);
Remove Recipes
Link to remove-recipes
The following script will remove all Pressing recipes that output Paper.
ZenScript Copy// <recipetype:create:pressing>.removeRecipe(IItemStack output)
<recipetype:create:pressing>.removeRecipe(<item:minecraft:paper>);
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:pressing>.factory() as ProcessingRecipeFactory
<recipetype:create:pressing>.factory()