Skip to main content

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

gm:crushing

JSON Format

Crushing recipes are stored under data/<namespace>/recipe/ in a datapack.
{
  "type": "gm:crushing",
  "ingredient": { "tag": "c:ores/iron" },
  "result": {
    "id": "gm:iron_dust",
    "count": 2
  }
}

Fields

FieldTypeRequiredDescription
typestringyesMust be gm:crushing.
ingredientobjectyesA single non-empty Minecraft ingredient (item or tag).
resultobjectyesThe 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:
{ "item": "minecraft:iron_ore" }
{ "tag": "c:ores/copper" }

Result format

{
  "id": "gm:copper_dust",
  "count": 2
}

How Ore Crushing Works

The Crusher accepts one item at a time. When a matching ingredient 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

  1. Create a datapack with the following layout:
    my_datapack/
    └── data/
        └── my_mod/
            └── recipe/
                └── my_crushing_recipe.json
    
  2. Write the recipe JSON following the format above.
  3. Place the datapack in the datapacks/ folder of your world, or package it inside a mod’s resources/data/ directory.

Example: crush a raw ore into dust

{
  "type": "gm:crushing",
  "ingredient": { "tag": "c:raw_materials/gold" },
  "result": {
    "id": "gm:gold_dust",
    "count": 2
  }
}

Example: crush a specific item

{
  "type": "gm:crushing",
  "ingredient": { "item": "minecraft:cobblestone" },
  "result": {
    "id": "minecraft:gravel",
    "count": 1
  }
}

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.

Build docs developers (and LLMs) love