-
Notifications
You must be signed in to change notification settings - Fork 9
Recipe Specification
The following page goes over the specifications for creating a new recipe for Miniaturization crafting. Here is a basic template:
Versions are required, in integer format. The current spec calls for version 1
.
This property is an array of layer definitions. See the layer specs page for more information on how to define layers.
Example layer definition, using the filled layer type:
{
"type": "compactcrafting:filled",
"component": "C"
}
This property is a JSON representation of the catalyst itemstack. It currently takes an item ID and a count, but the count will be set to 1 if it is anything different. This is planned to change in a future update -- it will eventually become possible to require a player to have, for example, a full stack of redstone to trigger a craft.
Note that Count
is case sensitive; this is due to the JSON loader.
"catalyst": {
"id": "minecraft:diamond",
"Count": 1
}
Components are a means of specifying something inside a recipe. The most common component is the block
component, which specifies information on how to match a block in the recipe. See an example below:
"components": {
"C": {
"type": "compactcrafting:block",
"block": "minecraft:coal_block"
}
}
Similar to the catalyst definition, this is an array of output item stacks that the recipe will create once the crafting process is completed.
Example (note Count
is case sensitive):
{
"id": "minecraft:diamond_block",
"Count": 27
}