Smelting Bonus (Thaumcraft)
Description
Additional item output when smelting a given item in the Infernal Furnace Multiblock.
Identifier
Refer to this via any of the following:
mods.thaumcraft.smelting_bonus/* Used as page default */
mods.thaumcraft.smeltingbonus
mods.thaumcraft.smeltingBonus
mods.thaumcraft.SmeltingBonus
mods.tc.smelting_bonus
mods.tc.smeltingbonus
mods.tc.smeltingBonus
mods.tc.SmeltingBonus
mods.thaum.smelting_bonus
mods.thaum.smeltingbonus
mods.thaum.smeltingBonus
mods.thaum.SmeltingBonusAdding Recipes
Adds recipes in the format
in,out, with chance having a default value of0.33F:groovymods.thaumcraft.smelting_bonus.add(IIngredient, ItemStack)Adds recipes in the format
in,out,chance:groovymods.thaumcraft.smelting_bonus.add(IIngredient, ItemStack, float)
Recipe Builder
Just like other recipe types, the Smelting Bonus 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.thaumcraft.smelting_bonus.recipeBuilder()
IIngredient. Sets the input of the smelting operation. Requires not null.groovyinput(IIngredient)ItemStack. Sets the bonus item to be produced from the smelting operation. Requires not null.groovyoutput(ItemStack)float. Sets the chance ofoutbeing produced from the smelting operation per attached Arcane Bellows + 1. (Default0.33F).groovychance(float)
First validates the builder, outputting errors to the log file if the validation failed, then registers the builder.
groovyregister()
Example
mods.thaumcraft.smelting_bonus.recipeBuilder()
.input(item('minecraft:cobblestone'))
.output(item('minecraft:stone_button'))
.chance(0.2F)
.register()
mods.thaumcraft.smelting_bonus.recipeBuilder()
.input(ore('stone'))
.output(item('minecraft:obsidian'))
.register()Removing Recipes
Removes all recipes that match the given output:
groovymods.thaumcraft.smelting_bonus.removeByOutput(ItemStack)Removes all registered recipes:
groovymods.thaumcraft.smelting_bonus.removeAll()
Example
mods.thaumcraft.smelting_bonus.removeByOutput(item('minecraft:gold_nugget'))
mods.thaumcraft.smelting_bonus.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.smelting_bonus.streamRecipes()
