This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well!
Create Filling
Link to create-filling
Die Filling 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 Stück Erde mit Lava (Flüssigkeit) mit einer Dauer von 100 Ticks gefüllt wird.
ZenScript Copy// <recipetype:create:filling>.addRecipe(String name, IItemStack output, IIngredient inputContainer, IFluidStack inputFluid, @Optional(100) int duration)
<recipetype:create:filling>.addRecipe("filling_test", <item:minecraft:diamond>, <item:minecraft:dirt>, <fluid:minecraft:lava>);
Remove Recipes
Link to remove-recipes
The following script will remove all Filling recipes that output Redstone.
ZenScript Copy// <recipetype:create:filling>.removeRecipe(IItemStack output)
<recipetype:create:filling>.removeRecipe(<item:minecraft:redstone>);
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:filling>.factory() as ProcessingRecipeFactory
<recipetype:create:filling>.factory()