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:
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
:groovymods.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.groovyaspect(AspectStack) aspect(String, int)
IIngredient
. Sets the input item. Requires not null.groovycatalyst(IIngredient)
String
. Sets the research required to craft the recipe.groovyresearchKey(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. (returnsnull
orthaumcraft.api.crafting.CrucibleRecipe
).groovyregister()
Example
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:
groovymods.thaumcraft.crucible.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.thaumcraft.crucible.removeAll()
Example
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:
groovymods.thaumcraft.crucible.streamRecipes()