Skip to content

Crucible (Thaumcraft)

Description

Combines an item with any number of Aspects to drop an output itemstack, potentially requiring a specific research to be completed.

Identifier

Refer to this via any of the following:

groovy
mods.thaumcraft.crucible/* Used as page default */
mods.thaumcraft.Crucible
mods.tc.crucible
mods.tc.Crucible
mods.thaum.crucible
mods.thaum.Crucible

Adding Recipes

  • Adds recipes in the format researchKey, result, catalyst, tags:

    groovy
    mods.thaumcraft.crucible.add(String, ItemStack, IIngredient, AspectList)

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.thaumcraft.crucible.recipeBuilder()
  • AspectList. Sets the Aspects and amounts required to convert. Requires greater than 0.

    groovy
    aspect(AspectList)
    aspect(AspectStack)
    aspect(String, int)
    aspect(AspectStack...)
    aspect(Collection<AspectStack>)
  • IIngredient. Sets the input item. Requires not null.

    groovy
    catalyst(IIngredient)
  • String. Sets the research required to craft the recipe.

    groovy
    researchKey(String)
  • 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 thaumcraft.api.crafting.CrucibleRecipe).

    groovy
    register()
Example
groovy
mods.thaumcraft.crucible.recipeBuilder()
    .researchKey('UNLOCKALCHEMY@3')
    .catalyst(item('minecraft:rotten_flesh'))
    .output(item('minecraft:gold_ingot'))
    .aspect(aspect('metallum') * 10)
    .register()

Removing Recipes

  • Removes all recipes that match the given output:

    groovy
    mods.thaumcraft.crucible.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.thaumcraft.crucible.removeAll()
Example
groovy
mods.thaumcraft.crucible.removeByOutput(item('minecraft:gunpowder'))
mods.thaumcraft.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.thaumcraft.crucible.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.