Overview
Fabrication recipes define advanced item synthesis performed inside the Matter Fabricator. Unlike vanilla crafting, fabrication is order-independent: the machine checks that every required ingredient is present in its input slots without regard to position. Up to 3 ingredients are supported per recipe.Recipe Type ID
JSON Format
Fabrication recipes are stored underdata/<namespace>/recipe/ in a datapack. The file must declare the gm:fabrication type.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | yes | Must be gm:fabrication. |
ingredients | array | yes | List of 1–3 ingredient objects. Each entry follows the standard Minecraft ingredient format (item, tag, or components). |
result | object | yes | The output ItemStack. Uses the standard ItemStack codec: id (required) and count (optional, defaults to 1). |
Ingredient format
Each object iningredients is a standard Minecraft Ingredient. Common forms:
Result format
Theresult field uses the standard NeoForge ItemStack codec:
Adding Custom Fabrication Recipes via Datapack
- Create a datapack with the following layout:
- Write the recipe JSON following the format above.
- Place the datapack in the
datapacks/folder of your world, or package it inside a mod’sresources/data/directory.
Example: single-ingredient recipe
Example: multi-ingredient recipe
JEI Integration
Fabrication recipes are visible in JEI under the Matter Fabricator category. You can:- Press R on any item to see if it is produced by a fabrication recipe.
- Press U on any ingredient to see which fabrication recipes consume it.
- Click the Matter Fabricator icon in the JEI category list to browse all fabrication recipes.