Ancestral Infusion Transmutation (Better With Addons)
Description
Converts an input item into an output itemstack, consuming Spirits from the Infused Soul Sand placed below the Ancestral Infuser if placed within the appropriate multiblock. The multiblock is either Soul Sand or Infused Soul Sand placed below the Ancestral Infuser and exclusively air blocks adjacent to the Infuser and Soul Sand blocks.
Identifier
Refer to this via any of the following:
mods.betterwithaddons.transmutation/* Used as page default */
mods.betterwithaddons.Transmutation
Adding Recipes
Add the given recipe to the recipe list:
groovymods.betterwithaddons.transmutation.add(TransmutationRecipe)
Recipe Builder
Just like other recipe types, the Ancestral Infusion Transmutation also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.betterwithaddons.transmutation.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 amount of spirits consumed. Requires greater than or equal to 0. (Default0
).groovyspirits(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
orbetterwithaddons.crafting.recipes.infuser.TransmutationRecipe
).groovyregister()
Example
mods.betterwithaddons.transmutation.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.spirits(0)
.register()
mods.betterwithaddons.transmutation.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay') * 4)
.spirits(5)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.betterwithaddons.transmutation.remove(TransmutationRecipe)
Removes all recipes that match the given input:
groovymods.betterwithaddons.transmutation.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.betterwithaddons.transmutation.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.betterwithaddons.transmutation.removeAll()
Example
mods.betterwithaddons.transmutation.removeByInput(item('minecraft:reeds'))
mods.betterwithaddons.transmutation.removeByOutput(item('betterwithaddons:crop_rice'))
mods.betterwithaddons.transmutation.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.betterwithaddons.transmutation.streamRecipes()