Natural Altar Infusion (Nature's Aura)
Description
Converts an input itemstack into an itemstack in a multiblock structure, with an optional catalyst block, costing aura and taking a configurable duration.
Identifier
Refer to this via any of the following:
mods.naturesaura.altar/* Used as page default */
mods.naturesaura.Altar
mods.naturesaura.infusion
mods.naturesaura.Infusion
Adding Recipes
Recipe Builder
Just like other recipe types, the Natural Altar Infusion also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.naturesaura.altar.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 how much aura the recipe drains from the environment. Requires greater than or equal to 1. (Default0
).groovyaura(int)
int
. Sets the time the recipe takes to complete. Requires greater than or equal to 1. (Default0
).groovytime(int)
IIngredient
. Sets the catalyst item. Requires not null. (DefaultIIngredient.EMPTY
).groovycatalyst(IIngredient)
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
orde.ellpeck.naturesaura.api.recipes.AltarRecipe
).groovyregister()
Example
mods.naturesaura.altar.recipeBuilder()
.name('demo')
.input(item('minecraft:clay'))
.catalyst(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.aura(100)
.time(100)
.register()
mods.naturesaura.altar.recipeBuilder()
.name(resource('example:demo'))
.input(item('minecraft:clay'))
.output(item('minecraft:gold_ingot') * 8)
.aura(30)
.time(5)
.register()
mods.naturesaura.altar.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:diamond'))
.catalyst(item('minecraft:clay'))
.aura(50)
.time(100)
.register()
Removing Recipes
Removes all recipes that match the given catalyst:
groovymods.naturesaura.altar.removeByCatalyst(IIngredient)
Removes all recipes that match the given input:
groovymods.naturesaura.altar.removeByInput(IIngredient)
Removes the Natural Altar Infusion recipe with the given name:
groovymods.naturesaura.altar.removeByName(ResourceLocation)
Removes all recipes that match the given output:
groovymods.naturesaura.altar.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.naturesaura.altar.removeAll()
Example
mods.naturesaura.altar.removeByCatalyst(item('naturesaura:crushing_catalyst'))
mods.naturesaura.altar.removeByInput(item('minecraft:rotten_flesh'))
mods.naturesaura.altar.removeByName(resource('naturesaura:infused_iron'))
mods.naturesaura.altar.removeByOutput(item('minecraft:soul_sand'))
mods.naturesaura.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.naturesaura.altar.streamRecipes()