Melting (Tinkers' Construct)
Description
Modifies what items can be melted down in the Smeltery.
Identifier
Refer to this via any of the following:
mods.tconstruct.melting/* Used as page default */
mods.tconstruct.Melting
mods.tinkersconstruct.melting
mods.tinkersconstruct.Melting
mods.ticon.melting
mods.ticon.Melting
Adding Recipes
Adds a new recipe in the format
input
,output
,time
:groovymods.tconstruct.melting.add(IIngredient, FluidStack, int)
Recipe Builder
Just like other recipe types, the Melting also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.tconstruct.melting.recipeBuilder()
int
. Required temperature for melting. Also determines the speed of the melt. Requires greater than or equal to 1. (Default300
).groovytime(int) temperature(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
orslimeknights.tconstruct.library.smeltery.MeltingRecipe
).groovyregister()
Example
mods.tconstruct.melting.recipeBuilder()
.input(item('minecraft:gravel'))
.fluidOutput(fluid('lava') * 25)
.time(80)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.tconstruct.melting.removeByInput(IIngredient)
Removes all recipes that match the given input and the given output:
groovymods.tconstruct.melting.removeByInputAndOutput(IIngredient, FluidStack)
Removes all recipes that match the given output:
groovymods.tconstruct.melting.removeByOutput(FluidStack)
Removes all registered recipes:
groovymods.tconstruct.melting.removeAll()
Example
mods.tconstruct.melting.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.tconstruct.melting.streamRecipes()