Tinkers’ Construct Material Recipe
Material Recipe 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 a Material Recipe that allows a Diamond to be used to create Bone (Material) parts in the Part Builder with a material value of 3 and a needed value of 5.
The needed
value is how many of the input (in this case Diamonds) are needed to make 1
Material.
An example of this being Ingots vs Nuggets. Ingots have a needed
value of 1
while Nuggets have a needed
value of 9
(since it takes 9 Nuggets to make 1 Ingot).
You can find valid materialIds by running /ct dump ticMaterials
in-game.
Remove Recipes
The following script removes the Flint (Item) to Flint (Material) parts from the Part builder.