Universal Cutting Recipe

模组

· 作者 Admsgenter

通过通用匹配规则动态添加大量的切割配方。

0 本站下载 0 关注 更新于 7 个月前

最新 0.0 · 1.20.1 · Forge

一键开服(送7天)

本模组为所有匹配的物品提供通用的切割配方。

本模组是从另一个名为 Convenient Storage(未在 Modrinth 上发布)的模组中分离出来的实用工具,由 Admsgenter 制作。

功能

为缺少适当配方的物品添加通用切割配方。

例如,木材类物品原本没有切割配方,我们为其添加了。 Wood Cutting Recipes

补全可通过多种配方制作的物品的直接配方。

例如,石头可以切割成圆石,圆石可以切割成圆石台阶,如果缺失从石头到圆石台阶的切割配方,本模组会将其添加。 Direct Cutting

  • 注意:在 Minecraft 1.20 中不存在从石头到圆石的切割配方,这是由本模组添加的。

数据包

可以通过数据包或 kjs 修改本模组的规则。

结构

数据包的结构应如下所示:

data/<namespace>/
├ universal_ingredient/
│  └ <ingredient_file_name>.json
└ universal_recipe/
    └ <recipe_file_name>.json

JSON

通用原料 (Universal Ingredient)

我们通过匹配物品 ID 来添加切割配方。

我们使用 '*' 作为通配符进行匹配。

例如,"minecraft:oak_log"、"minecraft:birch_log" 等匹配 "*_log"。

JSON 的结构应如下所示:

JSON
├ <ingredient_0>: [<rule_0>, <rule_1>, ...]
├ <ingredient_1>: [<rule_0>, <rule_1>, ...]
...

例如,data/universal_cutting_recipe/universal_ingredient/default.json 的部分内容:

{
    "boat": ["*_boat"],
    "bricks": ["*_bricks"],
    "button": ["*_button"],
    "door": ["*_door"],
    "fence": ["*_fence"],
    "fence_gate": ["*_fence_gate"],
    "log": ["*_log", "*_stem"],
    "planks": ["*_planks"],
    "stripped_log": ["stripped_*_log", "stripped_*_stem"],
    "stripped_wood": ["stripped_*_wood", "stripped_*_hyphae"],
    "trapdoor": ["*_trapdoor"],
    "wood": ["*_wood", "*_hyphae"]
}
  • 注意:单独的 "*" 不能作为规则。

通用配方 (Universal Recipe)

JSON 的结构应如下所示:

JSON
├ <input_ingredient_0>: {
│      <output_ingredient_0>: <count_0>,
│      <output_ingredient_1>: <count_1>,
│      ...
│  }
├ <input_ingredient_1>: {
│      ...
│  }
...

例如,data/universal_cutting_recipe/universal_recipe/default.json 的部分内容:

{
    "*": {
        "bricks": 1,
        "button": 1,
        "fence": 1,
        "fence_gate": 1,
        "slab": 2,
        "stairs": 1
    },
    "log": {
        "stripped_log": 1
    },
    "planks": {
        "button": 1,
        "door": 1,
        "fence": 1,
        "fence_gate": 1,
        "minecraft:ladder": 2,
        "minecraft:stick": 3,
        "sign": 1,
        "slab": 2,
        "stairs": 1,
        "trapdoor": 1
    },
    "stripped_log": {
        "boat": 1,
        "minecraft:barrel": 1,
        "minecraft:chest": 1,
        "minecraft:composter": 2,
        "minecraft:crafting_table": 1,
        "planks": 4
    },
    "stripped_wood": {
        "stripped_log": 1
    },
    "wood": {
        "log": 1,
        "stripped_wood": 1
    }
}
  • 注意:单独的 "*" 可以作为输入原料 (input_ingredient)。

然后,如果输入和输出中的 * 相同,将添加相应的配方。

杂项

我可以在整合包中使用此模组吗?

可以。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源