Skip to content

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:

groovy
mods.betterwithmods.crucible/* Used as page default */
mods.betterwithmods.Crucible

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.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.

    groovy
    input(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.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • int. Sets if the Cauldron requires a normal fire (1) or a Stoked Fire (2) below it. (Default 1).

    groovy
    heat(int)
  • int. Sets the priority of the recipe in relation to other valid recipes for the given items. (Default 1).

    groovy
    priority(int)
  • boolean. Sets if the Cauldron requires any heat source below it. (Default false).

    groovy
    ignoreHeat()
    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. (returns null or betterwithmods.common.registry.bulk.recipes.CookingPotRecipe).

    groovy
    register()
Example
groovy
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:

    groovy
    mods.betterwithmods.crucible.remove(CookingPotRecipe)
  • Removes all recipes that match the given input:

    groovy
    mods.betterwithmods.crucible.removeByInput(IIngredient)
  • Removes all recipes that match the given input:

    groovy
    mods.betterwithmods.crucible.removeByInput(ItemStack)
  • Removes all recipes that match the given output:

    groovy
    mods.betterwithmods.crucible.removeByOutput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.betterwithmods.crucible.removeAll()
Example
groovy
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:

    groovy
    mods.betterwithmods.crucible.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.