Rune Altar (Botania)
Description
Converts a items inputs into an item output at the cost of mana when a Livingrock item is thrown atop the altar and right clicked with a Wand of the Forest.
Identifier
Refer to this via any of the following:
mods.botania.rune_altar/* Used as page default */
mods.botania.runealtar
mods.botania.runeAltar
mods.botania.RuneAltar
Adding Recipes
Adds recipes in the format
output
,mana
,inputs
:groovymods.botania.rune_altar.add(ItemStack, int, IIngredient...)
Recipe Builder
Just like other recipe types, the Rune Altar also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.botania.rune_altar.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1. Requires thatinput
IIngredients cannot contain Botania's Livingrock Item.groovyinput(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 2.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets the mana cost of processing the recipe. Requires greater than or equal to 1. (Default0
).groovymana(int)
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.RecipeRuneAltar
).groovyregister()
Example
mods.botania.rune_altar.recipeBuilder()
.input(ore('gemEmerald'), item('minecraft:apple'))
.output(item('minecraft:diamond'))
.mana(500)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.botania.rune_altar.removeByInput(IIngredient...)
Removes all recipes that match the given input:
groovymods.botania.rune_altar.removeByInputs(IIngredient...)
Removes all recipes that match the given output:
groovymods.botania.rune_altar.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.botania.rune_altar.removeAll()
Example
mods.botania.rune_altar.removeByInput(ore('runeEarthB'))
mods.botania.rune_altar.removeByInputs(ore('feather'), ore('string'))
mods.botania.rune_altar.removeByOutput(item('botania:rune:1'))
mods.botania.rune_altar.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.rune_altar.streamRecipes()