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
The Filling mechanic is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe()
and removeAll()
.
Methods
Link to methods
Add Recipe
Link to add-recipe
The following script will add a recipe that will output a Diamond when a piece of Dirt is Filled with Lava (fluid) with a duration of 100.
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()