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

Die Milling 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 und einen Apple mit einer Chance von 45% ausgibt, in der ein Stück Erde mit einer Dauer von 100 Ticks gefräst wird.

ZenScript
Copy
// <recipetype:create:milling>.addRecipe(String name, MCWeightedItemStack[] output, IIngredient input, @Optional(100) int duration)

<recipetype:create:milling>.addRecipe("milling_test", [<item:minecraft:diamond>, <item:minecraft:apple> % 45], <item:minecraft:dirt>);

The following script will remove all Milling recipes that output Limesand.

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

<recipetype:create:milling>.removeRecipe(<item:create:limesand>);