Skip to content

For Modpack Devs

Selsus74 edited this page Oct 17, 2026 · 1 revision

Adding your own custom Recipes

Datapacks

Custom Recipes can be added via datapacks in JSON-Format. Create a JSON for each Recipe (Ressourcelocation: data/metalworkingbench/recipes/YOUR_JSON):

{
  "type": "metalworkingbench:metalworking",
  "tool": {
    "item": "metalworkingbench:hammer"
  },
  "input": {
    "item": "minecraft:iron_ingot"
  },
  "result": {
    "item": "metalworkingbench:iron_plate",
    "count": 1
  }
}

KubeJS

Or add recipes via KubeJS.

ServerEvents.recipes(event => {
    event.custom({
        type: 'metalworkingbench:metalworking',
        tool: {
            item: 'metalworkingbench:hammer'
        },
        input: {
            item: 'minecraft:iron_ingot'
        },
        result: {
            item: 'metalworkingbench:iron_plate',
            count: 1
        }
    });
});

Clone this wiki locally