header
premium banner

JSON Recipe Manager will start downloading in 5 seconds...

STILL DOWNLOADING MANUALLY??

Join over 10 million players who use the CurseForge app!

Download App Now

Description

This mod allows you to load recipes from various JSON files found in the mod's config folder.

 

It supports the vanilla minecraft json recipe format.

 

Example Json files (placed in config/JSONRecipes):

 _constants.json <-- special file that contains constants that can be used in all recipes

[{
  "name": "MIXED",
  "ingredient": [
    {
      "type": "forge:ore_dict",
      "ore": "stickWood"
    },
    {
      "item": "minecraft:torch"
    }
  ]
}]

 test_1.json <-- single recipe file

{
  "type": "forge:ore_shaped",
  "group": "json.recipes",
  "result": { "item": "minecraft:diamond_ore" },
  "pattern": [
    "x x",
    " x ",
    "x x"
  ],
  "key": {
    "x": { "type": "forge:ore_dict", "ore": "gemDiamond" }
  }
}

 test_2.json <-- multiple recipes file

[{
  "type": "forge:ore_shaped",
  "group": "json.recipes",
  "result": { "item": "minecraft:coal_ore" },
  "pattern": [
    "x x",
    " y ",
    "x x"
  ],
  "key": {
    "x": { "item": "minecraft:coal", "data": 0 },
    "y": { "item": "#MIXED" }
  }
}, {
  "type": "forge:ore_shaped",
  "group": "json.recipes",
  "result": { "item": "minecraft:iron_ore" },
  "pattern": [
    "x x",
    " y ",
    "x x"
  ],
  "key": {
    "x": { "type": "forge:ore_dict", "ore": "ingotIron" },
    "y": { "item": "#MIXED" }
  }
}]

 test_3.json <-- shows how to remove an existing recipe and replace it

{
  "remove": [
    { "item": "minecraft:wooden_axe" }
  ],
  "add": [
    {
      "type": "forge:ore_shaped",
      "group": "json.recipes",
      "result": {
        "item": "minecraft:wooden_axe"
      },
      "pattern": [
        "xx ",
        "xx ",
        "  x"
      ],
      "key": {
        "x": {
          "type": "forge:ore_dict",
          "ore": "stickWood"
        }
      }
    }
  ]
}

 test_4.json <-- shows how to replace a recipe during the 'init' event

{
  "when": "init",
  "remove": [
    { "item": "stevescarts:modulecomponents", "data": 43 }
  ],
  "add": [
    {
      "type": "forge:ore_shaped",
      "group": "json.recipes",
      "result": {
        "item": "stevescarts:modulecomponents", "data": 43, "count": 12
      },
      "pattern": [
        "xx ",
        "xx ",
        "   "
      ],
      "key": {
        "x": {
          "type": "forge:ore_dict",
          "ore": "stickWood"
        }
      }
    }
  ]
}

 

If you feel the need to talk dirty to the developer:

MMD Cat Mods - Discord <-- use this or github issues instead of curse comments