Alloying (Tinkers' Construct)
Description
Modifies what fluids can be mixed together in the Smeltery.
Identifier
Refer to this via any of the following:
mods.tconstruct.alloying/* Used as page default */
mods.tconstruct.Alloying
mods.tinkersconstruct.alloying
mods.tinkersconstruct.Alloying
mods.ticon.alloying
mods.ticon.Alloying
Adding Recipes
Add the given recipe to the recipe list:
groovymods.tconstruct.alloying.add(AlloyRecipe)
Adds a new recipe in the format
output
,inputs
:groovymods.tconstruct.alloying.add(FluidStack, FluidStack...)
Example
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.
mods.tconstruct.alloying.recipeBuilder()
FluidStackList
. Sets the fluid inputs of the recipe. Requires greater than or equal to 2.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
FluidStackList
. Sets the fluid outputs of the recipe. Requires exactly 1.groovyfluidOutput(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. (returnsnull
orslimeknights.tconstruct.library.smeltery.AlloyRecipe
).groovyregister()
Example
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:
groovymods.tconstruct.alloying.remove(AlloyRecipe)
Removes all recipes that match the given inputs:
groovymods.tconstruct.alloying.removeByInputs(FluidStack...)
Removes all recipes that match the given output and the given inputs:
groovymods.tconstruct.alloying.removeByInputsAndOutput(FluidStack, FluidStack...)
Removes all recipes that match the given output:
groovymods.tconstruct.alloying.removeByOutput(FluidStack)
Removes all registered recipes:
groovymods.tconstruct.alloying.removeAll()
Example
mods.tconstruct.alloying.removeByInputs(fluid('cobalt')*2,fluid('ardite')*2)
mods.tconstruct.alloying.removeByInputsAndOutput(fluid('knightslime')*72,fluid('iron')*72,fluid('stone')*144,fluid('purpleslime')*125)
mods.tconstruct.alloying.removeByOutput(fluid('pigiron'))
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:
groovymods.tconstruct.alloying.streamRecipes()