Overview
Crushing recipes define how the Crusher machine processes ores and raw materials into dusts and powders. Each recipe takes a single input item and produces a single output item stack.Recipe Type ID
JSON Format
Crushing recipes are stored underdata/<namespace>/recipe/ in a datapack.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | yes | Must be gm:crushing. |
ingredient | object | yes | A single non-empty Minecraft ingredient (item or tag). |
result | object | yes | The output ItemStack. Uses the standard ItemStack codec: id (required) and count (optional, defaults to 1). |
Ingredient format
ingredient accepts a single standard Minecraft ingredient object:
Result format
How Ore Crushing Works
The Crusher accepts one item at a time. When a matchingingredient is placed in its input slot, the machine processes it and deposits the result into the output slot. Using tags for ingredient (e.g., c:ores/iron) lets a single recipe match both the regular and deepslate variants of an ore without needing separate files.
Adding Custom Crushing 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: crush a raw ore into dust
Example: crush a specific item
JEI Integration
Crushing recipes are visible in JEI under the Crusher category. You can:- Press R on any item to see if it is produced by a crushing recipe.
- Press U on any ingredient to see which crushing recipe it is consumed by.
- Click the Crusher icon in the JEI category list to browse all crushing recipes.