Alchemy Array (Blood Magic: Alchemical Wizardry)
Description
Converts two items into an output itemstack by using Arcane Ashes in-world. Has a configurable texture for the animation.
Identifier
The identifier mods.bloodmagic.alchemy_array will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
mods.bm.alchemyarray
mods.bm.alchemyArray
mods.bm.AlchemyArray
mods.bm.alchemy_array
mods.bloodmagic.alchemyarray
mods.bloodmagic.alchemyArray
mods.bloodmagic.AlchemyArray
mods.bloodmagic.alchemy_array/* Used as page default */Adding Recipes
Add the given recipe to the recipe list:
groovymods.bloodmagic.alchemy_array.add(RecipeAlchemyArray)Adds recipes in the format
input,catalyst,output,circleTexture:groovymods.bloodmagic.alchemy_array.add(IIngredient, IIngredient, ItemStack)Adds recipes in the format
input,catalyst,output, optionalcircleTexture:groovymods.bloodmagic.alchemy_array.add(IIngredient, IIngredient, ItemStack, String)Adds recipes in the format
input,catalyst,output, optionalcircleTexture:groovymods.bloodmagic.alchemy_array.add(IIngredient, IIngredient, ItemStack, ResourceLocation)
Recipe Builder
Just like other recipe types, the Alchemy Array also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
Recipe Builder
Create the Recipe Builder.
groovymods.bloodmagic.alchemy_array.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>)ResourceLocation. Sets the animation texture.groovytexture(String) texture(ResourceLocation)IIngredient. Sets the catalyst.groovycatalyst(IIngredient)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorWayofTime.bloodmagic.api.impl.recipe.RecipeAlchemyArray).groovyregister()
Example
mods.bloodmagic.alchemy_array.recipeBuilder()
.input(item('minecraft:diamond'))
.catalyst(item('bloodmagic:slate:1'))
.output(item('minecraft:gold_ingot'))
.texture('bloodmagic:textures/models/AlchemyArrays/LightSigil.png')
.register()
mods.bloodmagic.alchemy_array.recipeBuilder()
.input(item('minecraft:clay'))
.catalyst(item('minecraft:gold_ingot'))
.output(item('minecraft:diamond'))
.register()Removing Recipes
Removes the given recipe from the recipe list:
groovymods.bloodmagic.alchemy_array.remove(RecipeAlchemyArray)Removes all recipes that match the given input:
groovymods.bloodmagic.alchemy_array.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.bloodmagic.alchemy_array.removeByOutput(ItemStack)Removes all recipes that match the given catalyst:
groovymods.bloodmagic.alchemy_array.removeByCatalyst(IIngredient)This removes all recipes that match the given input and Catalyst:
groovymods.bloodmagic.alchemy_array.removeByInputAndCatalyst(IIngredient, IIngredient)Removes all registered recipes:
groovymods.bloodmagic.alchemy_array.removeAll()
Example
mods.bloodmagic.alchemy_array.removeByInput(item('bloodmagic:component:13'))
mods.bloodmagic.alchemy_array.removeByOutput(item('bloodmagic:sigil_void'))
mods.bloodmagic.alchemy_array.removeByCatalyst(item('bloodmagic:slate:2'))
mods.bloodmagic.alchemy_array.removeByInputAndCatalyst(item('bloodmagic:component:7'), item('bloodmagic:slate:1'))
mods.bloodmagic.alchemy_array.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.bloodmagic.alchemy_array.streamRecipes()
