Lava Infuser (Armor Plus)
Description
Convert input itemstack to output itemstack over a second, with the ability to reward a configurable amount of experience based on the output itemstack. Consumes lava at a rate of 1 bucket per 10 seconds.
Warning
Experience provided is based on the output itemstack. Experience is a fallback value, only used if the itemstack provides no experience when smelting.
Identifier
Refer to this via any of the following:
mods.armorplus.lava_infuser/* Used as page default */
mods.armorplus.lavainfuser
mods.armorplus.lavaInfuser
mods.armorplus.LavaInfuser
Adding Recipes
Add the given recipe to the recipe list:
groovymods.armorplus.lava_infuser.add(LavaInfuserRecipe)
Recipe Builder
Just like other recipe types, the Lava Infuser 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.armorplus.lava_infuser.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>)
double
. Sets the experience provided by the output. Requires greater than or equal to 0. (Default0.0d
).groovyexperience(double)
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.sofodev.armorplus.common.compat.crafttweaker.lavainfuser.LavaInfuserRecipe
).groovyregister()
Example
mods.armorplus.lava_infuser.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay') * 2)
.register()
mods.armorplus.lava_infuser.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:diamond'))
.experience(5.0d)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.armorplus.lava_infuser.remove(LavaInfuserRecipe)
Removes all recipes that match the given input:
groovymods.armorplus.lava_infuser.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.armorplus.lava_infuser.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.armorplus.lava_infuser.removeAll()
Example
mods.armorplus.lava_infuser.removeByInput(item('armorplus:lava_crystal'))
mods.armorplus.lava_infuser.removeByOutput(item('armorplus:lava_infused_obsidian'))
mods.armorplus.lava_infuser.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.armorplus.lava_infuser.streamRecipes()