Skip to content

Melting (Tinkers' Construct)

Description

Modifies what items can be melted down in the Smeltery.

Identifier

Refer to this via any of the following:

groovy
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:

    groovy
    mods.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. (Default 300).

    groovy
    time(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. (returns null or slimeknights.tconstruct.library.smeltery.MeltingRecipe).

    groovy
    register()
Example
groovy
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:

    groovy
    mods.tconstruct.melting.removeByInput(IIngredient)
  • Removes all recipes that match the given input and the given output:

    groovy
    mods.tconstruct.melting.removeByInputAndOutput(IIngredient, FluidStack)
  • Removes all recipes that match the given output:

    groovy
    mods.tconstruct.melting.removeByOutput(FluidStack)
  • Removes all registered recipes:

    groovy
    mods.tconstruct.melting.removeAll()
Example
groovy
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:

    groovy
    mods.tconstruct.melting.streamRecipes()

Contributors

Changelog

© 2024 CleanroomMC. All Rights Reserved.