Still (Soot)
Description
The Still is a device that can be used to distill fluids. The Still requires a heat source to operate.
Identifier
Refer to this via any of the following:
mods.soot.still/* Used as page default */
mods.soot.Still
Adding Recipes
Recipe Builder
Just like other recipe types, the Still also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.soot.still.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires exactly 1.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
int
. Sets how many of the catalyst item is consumed in the recipe. Requires greater than or equal to 1 and less than or equal to 1000. (Default1
).groovycatalystConsumed(int)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orsoot.recipe.RecipeStill
).groovyregister()
Example
mods.soot.still.recipeBuilder()
.fluidInput(fluid('water') * 10)
.input(item('minecraft:iron_ingot'))
.fluidOutput(fluid('lava') * 10)
.catalystConsumed(10)
.register()
mods.soot.still.recipeBuilder()
.fluidInput(fluid('iron') * 10)
.fluidOutput(fluid('copper') * 2)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.soot.still.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.soot.still.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.soot.still.removeAll()
Example
mods.soot.still.removeByInput(fluid('boiling_wort'))
mods.soot.still.removeByOutput(fluid('inner_fire'))
mods.soot.still.removeAll()
Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.soot.still.streamRecipes()