Alchemy Table (Blood Magic: Alchemical Wizardry)
Description
Converts up to 6 input items into an output itemstack, with configurable time, minimum tier of Blood Orb required, and Life Essence drained from the Orb network.
Danger
Tier 6 must be enabled in the config to use an Orb of that tier in the Alchemy Table.
Identifier
Refer to this via any of the following:
mods.bm.alchemy_table
mods.bm.alchemytable
mods.bm.alchemyTable
mods.bm.AlchemyTable
mods.bloodmagic.alchemy_table/* Used as page default */
mods.bloodmagic.alchemytable
mods.bloodmagic.alchemyTable
mods.bloodmagic.AlchemyTable
Adding Recipes
Add the given recipe to the recipe list:
groovymods.bloodmagic.alchemy_table.add(RecipeAlchemyTable)
Adds recipes in the format
input
,output
,syphon
,ticks
,minimumTier
:groovymods.bloodmagic.alchemy_table.add(NonNullList<Ingredient>, ItemStack, int, int, int)
Recipe Builder
Just like other recipe types, the Alchemy Table also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.bloodmagic.alchemy_table.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 6.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 long in ticks the recipe should take. Requires greater than 0. (Default0
).groovytime(int) ticks(int)
int
. Sets how much Life Essence is drained from the Blood Network. Requires greater than or equal to 0. (Default0
).groovydrain(int) syphon(int)
int
. Sets the minimum tier the Blood Orb inside the table must be. Requires greater than or equal to 0 and less thanAltarTier.MAXTIERS
, which is determined by the config optionenableTierSixEvenThoughThereIsNoContent
. (Default0
).groovytier(int) minimumTier(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
orWayofTime.bloodmagic.api.impl.recipe.RecipeAlchemyTable
).groovyregister()
Example
mods.bloodmagic.alchemy_table.recipeBuilder()
.input(item('minecraft:diamond'), item('minecraft:diamond'))
.output(item('minecraft:clay'))
.ticks(100)
.minimumTier(2)
.syphon(500)
.register()
mods.bloodmagic.alchemy_table.recipeBuilder()
.input(item('minecraft:diamond'), item('minecraft:diamond'), item('minecraft:gold_ingot'), item('minecraft:gold_ingot'), item('bloodmagic:slate'), item('bloodmagic:slate'))
.output(item('minecraft:clay'))
.time(2000)
.tier(5)
.drain(25000)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.bloodmagic.alchemy_table.remove(RecipeAlchemyTable)
Removes all recipes that match the given input:
groovymods.bloodmagic.alchemy_table.removeByInput(IIngredient...)
Removes all recipes that match the given input:
groovymods.bloodmagic.alchemy_table.removeByInput(NonNullList<IIngredient>)
Removes all recipes that match the given output:
groovymods.bloodmagic.alchemy_table.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.bloodmagic.alchemy_table.removeAll()
Example
mods.bloodmagic.alchemy_table.removeByInput(item('minecraft:nether_wart'), item('minecraft:gunpowder'))
mods.bloodmagic.alchemy_table.removeByOutput(item('minecraft:sand'))
mods.bloodmagic.alchemy_table.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_table.streamRecipes()