Skip to content

Alloying (Tinkers' Construct)

Description

Modifies what fluids can be mixed together in the Smeltery.

Identifier

The identifier mods.tconstruct.alloying will be used as the default on this page.

All Identifiers

Any of these can be used to refer to this compat:

groovy
mods.ticon.alloying
mods.ticon.Alloying
mods.tconstruct.alloying/* Used as page default */
mods.tconstruct.Alloying
mods.tinkersconstruct.alloying
mods.tinkersconstruct.Alloying

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.tconstruct.alloying.add(AlloyRecipe)
  • Adds a new recipe in the format output, inputs:

    groovy
    mods.tconstruct.alloying.add(FluidStack, FluidStack...)
Example
groovy
mods.tconstruct.alloying.add(fluid('lava') * 144, fluid('water') * 500, fluid('iron') * 5, fluid('clay') * 60)

Recipe Builder

Just like other recipe types, the Alloying also uses a recipe builder.

Don't know what a builder is? Check the builder info page out.

Recipe Builder
  • Create the Recipe Builder.

    groovy
    mods.tconstruct.alloying.recipeBuilder()

  • FluidStackList. Sets the fluid inputs of the recipe. Requires greater than or equal to 2.

    groovy
    fluidInput(FluidStack)
    fluidInput(FluidStack...)
    fluidInput(Collection<FluidStack>)
  • FluidStackList. Sets the fluid outputs of the recipe. Requires exactly 1.

    groovy
    fluidOutput(FluidStack)
    fluidOutput(FluidStack...)
    fluidOutput(Collection<FluidStack>)

  • 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.AlloyRecipe).

    groovy
    register()

Example
groovy
mods.tconstruct.alloying.recipeBuilder()
    .fluidOutput(fluid('iron') * 3)
    .fluidInput(fluid('clay') * 1,fluid('lava') * 2)
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.tconstruct.alloying.remove(AlloyRecipe)
  • Removes all recipes that match the given inputs:

    groovy
    mods.tconstruct.alloying.removeByInputs(FluidStack...)
  • Removes all recipes that match the given output:

    groovy
    mods.tconstruct.alloying.removeByOutput(FluidStack)
  • Removes all recipes that match the given output and the given inputs:

    groovy
    mods.tconstruct.alloying.removeByInputsAndOutput(FluidStack, FluidStack...)
  • Removes all registered recipes:

    groovy
    mods.tconstruct.alloying.removeAll()
Example
groovy
mods.tconstruct.alloying.removeByInputs(fluid('cobalt')*2,fluid('ardite')*2)
mods.tconstruct.alloying.removeByOutput(fluid('pigiron'))
mods.tconstruct.alloying.removeByInputsAndOutput(fluid('knightslime')*72,fluid('iron')*72,fluid('stone')*144,fluid('purpleslime')*125)
mods.tconstruct.alloying.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.alloying.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.