Crucible (Better With Mods)
Description
Converts a large number of items into other items, with the ability to require specific amounts of heat.
Identifier
Refer to this via any of the following:
mods.betterwithmods.crucible/* Used as page default */
mods.betterwithmods.Crucible
Adding Recipes
Add the given recipe to the recipe list:
groovymods.betterwithmods.crucible.add(CookingPotRecipe)
Recipe Builder
Just like other recipe types, the Crucible also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.betterwithmods.crucible.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 9.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires greater than or equal to 1 and less than or equal to 9.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets if the Cauldron requires a normal fire (1) or a Stoked Fire (2) below it. (Default1
).groovyheat(int)
int
. Sets the priority of the recipe in relation to other valid recipes for the given items. (Default1
).groovypriority(int)
boolean
. Sets if the Cauldron requires any heat source below it. (Defaultfalse
).groovyignoreHeat() ignoreHeat(boolean)
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
orbetterwithmods.common.registry.bulk.recipes.CookingPotRecipe
).groovyregister()
Example
mods.betterwithmods.crucible.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.heat(2)
.register()
mods.betterwithmods.crucible.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:gold_ingot') * 16)
.ignoreHeat()
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.betterwithmods.crucible.remove(CookingPotRecipe)
Removes all recipes that match the given input:
groovymods.betterwithmods.crucible.removeByInput(IIngredient)
Removes all recipes that match the given input:
groovymods.betterwithmods.crucible.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.betterwithmods.crucible.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.betterwithmods.crucible.removeAll()
Example
mods.betterwithmods.crucible.removeByInput(item('minecraft:gunpowder'))
mods.betterwithmods.crucible.removeByOutput(item('minecraft:gunpowder'))
mods.betterwithmods.crucible.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.betterwithmods.crucible.streamRecipes()