Crafting your machine
Add a recipe for crafting a custom machine item.
All the machines share the same item, with Id : custommachinery:custom_machine_item
the machine the item will be linked to is defined with nbt.
The nbt key is machine
and its value should be the machine id like: custommachinery:power_crusher
(the namespace should always be included).
Vanilla json recipes, Crafttweaker and KubeJS have different ways to handle items nbt so I will put an example of each below.
The recipe will be:
{
"type": "minecraft:crafting_shaped",
"pattern":
[
"xxx",
"x x",
"xxx"
],
"key":
{
"x":
{
"item": "minecraft:diamond"
}
},
"result":
{
"item": "custommachinery:custom_machine_item",
"count": 1,
"nbt": {"machine":"custommachinery:power_crusher"}
}
}
Last updated