-
Notifications
You must be signed in to change notification settings - Fork 772
Part Builder Recipe JSON
KnightMiner edited this page Dec 23, 2021
·
1 revision
Defines a recipe to turn an item into another item by selecting a pattern. Most recipes make use of the material corresponding to the input item, as defined by Material Recipes.
Table of Contents |
---|
Converts a material into a specific item using the specified pattern.
-
type
: Must betconstruct:item_part_builder
. -
pattern
(ResourceLocation): Name of the pattern. Corresponds to the language keypattern.<domain>.<name>
-
material
(MaterialId): Material required for this recipe. -
cost
(integer): How many baseline "ingots" are needed to make one part. -
result
ItemOutput: Output item.
Produces a stone ingot using the ingot pattern and 5 stone "units".
{
"type": "tconstruct:item_part_builder",
"pattern": "tconstruct:ingot",
"material": "tconstruct:stone",
"cost": 5,
"result": {
"item": "tconstruct:stone_ingot"
}
}
Converts material input into a material item with corresponding material.
-
type
: Must be"tconstruct:part_builder"
. -
pattern
(ResourceLocation): Name of the pattern. Corresponds to the language keypattern.<domain>.<name>
-
cost
(integer): How many baseline "ingots" are needed to make one part. -
result
(JsonObject): Output object.-
item
(IMaterialItem): Output material item. Will have the material applied. -
count
(integer): Number of the result item produced. Defaults to 1.
-
Produces an axe head using the axe head pattern and 2 material.
{
"type": "tconstruct:part_builder",
"pattern": "tconstruct:axe_head",
"cost": 2,
"result": {
"item": "tconstruct:axe_head"
}
}
More examples in .jar/data/tconstruct/recipes/tools/parts/