Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes
This page relates to Tinkers’ Construct, which has built-in support!

Tinkers’ Construct Alloying

Alloying is a type of IRecipeManager and implements all the methods that are available to IRecipeManager’s, such as removeRecipe() and removeAll().

Methods

Add Recipe

The following script adds an Alloying recipe that will produce Water (Fluid) from 1mb of Molten Rose Gold (Fluid) and 1mb of Lava (Fluid) when combined with a heat of atleast 50°C

script.zs
// <recipetype:tconstruct:alloying>.addRecipe(name as string, ingredients as CTFluidIngredient[], output as IFluidStack, temperature as int)
<recipetype:tconstruct:alloying>.addRecipe("alloy_test", [<fluid:tconstruct:molten_rose_gold>, <fluid:minecraft:lava>], <fluid:minecraft:water>, 50);

Remove Recipes

The following script will remove all Allying recipes that output Molten Pig Iron (Fluid).

script.zs
// <recipetype:tconstruct:alloying>.removeRecipe(output as Fluid)
<recipetype:tconstruct:alloying>.removeRecipe(<fluid:tconstruct:molten_pig_iron>);