Material Recipes
This page is about the JSON to make a material craftable. For the JSON to define the material, see Material Format. For the JSON to craft tool parts and other material items, see Part Recipes.
In order for a material to be craftable and repairable, its neccessary to define one or more recipes.
Items
The material item recipe associates an item with a material. This association allows using the item to repair tools if the material is on a repairable part. In addition, if the material is marked as craftable in it’s material definition, this recipe allows using that item to craft the material in the part builder.
A given item can only be associated with one material, otherwise there may be conflicts when crafting or repairing. Similarly, if the item is used by itself in a modifier recipe, it may conflict with being used as a material item.
Material item recipes have the following format:
tconstruct:material
.
Recipe serializer ID, always - Recipe group for the recipe book, currently unused.
- Items to associate with the material.
- Value associated with this recipe, in comparison to the material’s base unit. For example, a block of metal would have a value of 9 compared to the base unit of ingots. If unset, defaults to 1.
value
of 1 withneeded
set to 9 to indicate it represents 1/9 of the base unit of ingot. If unset, defaults to 1.
Denominator of the value associated with this recipe, allows an item to represent a fraction of the base unit. For example, a nugget would have a - Material variant produced by this recipe. Note that when repairing, just the material ID is matched; the variant is ignored.
value
is required for a recipe. If unset, defaults to an empty item stack. Unused ifvalue
is 1.
Leftover item stack (supporting count) produced when only part of
The recipe object.
Casting and Composite
The material fluid recipe is used to define a fluid needed for casting a material. This recipe is also used to define the fluid for composite casting a material from a fluid on another material.
Material casting recipes have the folllowing format:
tconstruct:material_fluid
.
Recipe serializer ID, always - Fluid used to cast this material. Amount will be scaled based on the part cost.
- Fluid temperature. Used to determine how long it takes the part to cool after casting.
- Material variant produced by this recipe.
input
as a base. If unset, this recipe defines standard part casting using a cast as the base.
If set, this recipe defines composite castng using
The recipe object.
Melting
Material melting recipes allow melting tool parts into the appropriate fluid in a smeltery, melter, or foundry. The cost for melting is determined through lookup on the part casting recipe.
tconstruct:material_melting
.
Recipe serializer ID, always - Material melted by this recipe.
- Fluid temperature. Used to determine how long it takes the part to melt, and allows gating the recipe using the fuel temperature.
- Result fluid for melting this material. Size will be scaled based on the part cost. May not be empty, and ignores NBT.
The recipe object.