Mana Infusion (Botania)
Description
Toss an item into a mana pool with an optional catalyst blockstate below the pool.
Warning
A mana cost greater than 10,000 cannot be converted in a Diluted Mana Pools and a mana cost greater than 1,000,000 cannot be converted in a normal Mana Pool. Both the Fabulous Mana Pool and The Everlasting Guilty Pool have the same capacity as a normal Mana Pool.
Identifier
Refer to this via any of the following:
mods.botania.mana_infusion/* Used as page default */
mods.botania.manainfusion
mods.botania.manaInfusion
mods.botania.ManaInfusion
Adding Recipes
Add the given recipe to the recipe list:
groovymods.botania.mana_infusion.add(RecipeManaInfusion)
Adds recipes in the format
output
,input
,mana
:groovymods.botania.mana_infusion.add(ItemStack, IIngredient, int)
Recipe Builder
Just like other recipe types, the Mana Infusion also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.botania.mana_infusion.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets the mana cost of converting the item. Requires greater than or equal to 1. (Default100
).groovymana(int)
IBlockState
. Sets the IBlockState required below the mana pool.groovycatalyst(IBlockState) useAlchemy() useConjuration()
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
orvazkii.botania.api.recipe.RecipeManaInfusion
).groovyregister()
Example
mods.botania.mana_infusion.recipeBuilder()
.input(ore('ingotGold'))
.output(item('botania:manaresource', 1))
.mana(500)
.catalyst(blockstate('minecraft:stone'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.botania.mana_infusion.remove(RecipeManaInfusion)
Removes all recipes with the given IBlockState catalyst:
groovymods.botania.mana_infusion.removeByCatalyst(IBlockState)
Removes all recipes that match the given input:
groovymods.botania.mana_infusion.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.botania.mana_infusion.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.botania.mana_infusion.removeAll()
Example
mods.botania.mana_infusion.removeByCatalyst(blockstate('botania:alchemycatalyst'))
mods.botania.mana_infusion.removeByInput(item('minecraft:ender_pearl'))
mods.botania.mana_infusion.removeByOutput(item('botania:managlass'))
mods.botania.mana_infusion.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.botania.mana_infusion.streamRecipes()