跳到正文

JSON Recipe Manager

作者:face_of_cat

A mod that allows you to load recipes from various JSON files

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

常见问题

JSON Recipe Manager 支持哪些 Minecraft 版本?

JSON Recipe Manager 支持 Minecraft Java 版 1.12–1.12.2,共 2 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

JSON Recipe Manager 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

face_of_cat 的其他作品

查看全部 →