
通用切制配方
通过通用匹配规则动态添加大量切割配方。
本模组为所有匹配的物品提供通用切割配方。
本模组是从另一个名为 Convenient Storage(不在 Modrinth 上)的模组中分离出来的实用工具,作者为 Admsgenter。
功能
为缺少合适配方的物品添加通用切割配方。
例如,木质物品没有切割配方,我们为它们添加了配方。

为可通过多种配方合成的物品补全直接配方。
例如,石头可以切割成圆石,圆石可以切割成圆石楼梯,若缺少从石头到圆石楼梯的切割配方,则会添加。

- 注意:从石头到圆石的切割配方在 Minecraft 1.20 中不存在,它是由本模组添加的。
数据包
本模组的规则可以在数据包或 kjs 中修改。
结构
数据包的结构应如下:
data/<namespace>/
├ universal_ingredient/
│ └ <ingredient_file_name>.json
└ universal_recipe/
└ <recipe_file_name>.json
JSON
通用原料
我们通过匹配物品的 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"]
}
- 注意:单独的 "*" 不能作为规则。
通用配方
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。
然后,如果输入和输出的 * 相同,则会添加配方。
杂项
我可以在整合包中使用本模组吗?
可以。
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。