Transmutation (Abyssal Tweaker)
Description
Turns an input ItemStack into an output ItemStack.
Identifier
Refer to this via any of the following:
mods.abyssaltweaker.transmutation/* Used as page default */
mods.abyssaltweaker.Transmutation
Adding Recipes
Recipe Builder
Just like other recipe types, the Transmutation also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.abyssaltweaker.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>)
float
. Sets the XP amount output that is given out when the recipe is executed. Requires greater than or equal to 0. (Default0.0f
).groovyxp(float)
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
orcom.shinoow.abyssalcraft.api.recipe.Transmutation
).groovyregister()
Example
mods.abyssaltweaker.transmutation.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.xp(0.5)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.abyssaltweaker.transmutation.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.abyssaltweaker.transmutation.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.abyssaltweaker.transmutation.removeAll()
Example
mods.abyssaltweaker.transmutation.removeByInput(item('minecraft:diamond'))
mods.abyssaltweaker.transmutation.removeByOutput(item('minecraft:flint'))
mods.abyssaltweaker.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.abyssaltweaker.transmutation.streamRecipes()