Infusion Altar (Astral Sorcery)
Description
Consumes buckets of Liquid Starlight when interacted with by a Resonating Wand to convert input items into output itemstacks after a time.
Identifier
Refer to this via any of the following:
mods.astralsorcery.infusion_altar/* Used as page default */
mods.astralsorcery.infusionaltar
mods.astralsorcery.infusionAltar
mods.astralsorcery.InfusionAltar
mods.astral.infusion_altar
mods.astral.infusionaltar
mods.astral.infusionAltar
mods.astral.InfusionAltar
Adding Recipes
Recipe Builder
Just like other recipe types, the Infusion Altar also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.astralsorcery.infusion_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 the time the recipe takes to complete. Requires greater than 0. (Default0
).groovytime(int)
boolean
. Sets if using a chalice speeds up the recipe time. (Defaultfalse
).groovychalice() chalice(boolean)
float
. Sets the chance of consuming a bucket of Starlight. Requires greater than or equal to 0 and less than or equal to 1. (Default0.0f
).groovyconsumption(float)
boolean
. Sets if the recipe consumes all 12 buckets of Starlight surrounding the Infusion Altar instead of just one. (Defaultfalse
).groovyconsumeMultiple() consumeMultiple(boolean)
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
orhellfirepvp.astralsorcery.common.crafting.infusion.recipes.BasicInfusionRecipe
).groovyregister()
Example
mods.astralsorcery.infusion_altar.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.consumption(1f)
.chalice(false)
.consumeMultiple(true)
.time(10)
.register()
mods.astralsorcery.infusion_altar.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay'))
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.astralsorcery.infusion_altar.removeByInput(ItemStack)
Removes all recipes that match the given output:
groovymods.astralsorcery.infusion_altar.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.astralsorcery.infusion_altar.removeAll()
Example
mods.astralsorcery.infusion_altar.removeByInput(item('minecraft:diamond_ore'))
mods.astralsorcery.infusion_altar.removeByOutput(item('minecraft:iron_ingot'))
mods.astralsorcery.infusion_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.astralsorcery.infusion_altar.streamRecipes()