Reliable Recipes
一款功能强大且对开发者友好的实用工具,旨在通过简单的 JSON 配置来操作配方和标签。 Reliable Recipes 允许整合包创作者无需复杂的脚本编写(说的就是你,KubeJS!),仅使用标准的 JSON 文件即可轻松添加、移除或修改配方和标签。
快速上手
Reliable Recipes 会监控 Minecraft 实例中 reliable_recipes/ 文件夹内的 JSON 文件:
- 位置: 将你的 JSON 文件放置在
./config/reliable_recipes/(或./reliable_recipes/)中。也支持子目录。 - 格式: 文件可以包含位于 JSON 数组中的修改规则,或者标准的 Minecraft/模组化配方 JSON 对象:
[
{
"action": "remove_recipe",
"mod": "examplemod",
"type": "minecraft:crafting_shaped"
}
]
你也可以直接将独立的配方 JSON 文件(例如标准合成、熔炼、切石或酿造配方)放入 reliable_recipes/ 中,而无需构建数据包!
配方操作
在筛选出要修改的配方后,你可以使用 "action" 属性应用相应的操作。
1. remove_recipe(或 remove)
完全从游戏中移除匹配的配方。
{
"action": "remove_recipe",
"id": [
"minecraft:wooden_pickaxe",
"minecraft:wooden_hoe"
]
}
2. replace_input
扫描原料并将目标物品/标签替换为指定替代品。
target:要查找的物品 ID 或标签(例如#minecraft:logs)。replacement:用作替代的物品 ID 或标签。可以是字符串或物品数组。
{
"action": "replace_input",
"target": "minecraft:stick",
"replacement": [
"minecraft:bamboo",
"minecraft:stick"
],
"mod": "minecraft"
}
3. replace_output
更改匹配配方的产出结果。
replacement:输出的新物品 ID。
{
"action": "replace_output",
"replacement": "minecraft:golden_apple",
"id": "minecraft:cake"
}
4. prevent_repair
阻止特定物品在所有标准修复方法中进行修复。支持物品 ID、标签("#minecraft:swords" 或 "minecraft:enchantable/durability")、正则表达式("/.*_pickaxe/")或数组。
{
"action": "prevent_repair",
"target": "minecraft:diamond_pickaxe"
}
5. set_repair_material
覆盖在砧上修复特定工具或武器所需的修复材料。支持物品 ID、标签("#c:iron_ingots"、"tag:c:iron_ingots")、正则表达式("/.*_slag/"),以及针对 target 和 material 的数组。
{
"action": "set_repair_material",
"target": "minecraft:diamond_sword",
"material": "minecraft:dirt"
}
6. add_recipe(或 add)
直接添加自定义配方,无需数据包。适用于所有原版配方类型以及任何模组化的配方类型。
- 配方 ID: 如果指定了
"id"(例如"id": "reliable_recipes:custom_recipe"),则使用该 ID。如果省略,配方 ID 将根据文件名和路径自动生成。指定一个已存在的配方 ID 将会覆盖该配方。
使用 add_recipe 包装器的示例:
{
"action": "add_recipe",
"id": "reliable_recipes:dirt_to_stick",
"recipe": {
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:dirt"
}
],
"result": {
"count": 4,
"id": "minecraft:stick"
}
}
}
或者直接放入原始配方 JSON:
任何标准的 Minecraft 配方 JSON 文件(例如 my_crafting_recipe.json 或 recipes/stonecutting/cut_copper.json)直接放置在 reliable_recipes/ 内都会自动加载!
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"#": {
"item": "minecraft:stick"
}
},
"pattern": [
"###",
"###",
"###"
],
"result": {
"count": 1,
"id": "minecraft:diamond"
}
}
过滤器
过滤器决定哪些配方受影响。一个配方必须匹配所有提供的过滤字段才能被选中。
| Field | Description | Example |
|---|---|---|
output |
产出的物品的注册表名称。 | "minecraft:stone_pickaxe" |
id |
配方的特定 ID。 | "minecraft:black_bed_from_white_bed" |
mod |
拥有该配方的模组 ID。 | "farmersdelight" 或 ["create", "mekanism"] |
type |
配方类型。 | "minecraft:smoking" |
input |
如果配方包含此原料则匹配。 | "minecraft:stick" 或 "#minecraft:logs" |
标签修改
从物品中剥离标签,或完全清空标签。这有助于清理 JEI/EMI 显示或隔离物品。
1. remove_all_tags(或 remove_tag)
从指定物品中移除所有标签关联。
{
"action": "remove_all_tags",
"id": [
"minecraft:stick",
"minecraft:cake"
]
}
2. remove_from_tag
从特定标签中移除特定物品。
{
"action": "remove_from_tag",
"tag": "minecraft:planks",
"id": "minecraft:oak_planks"
}
3. clear_tag
清空指定标签中的所有物品/方块。
{
"action": "clear_tag",
"tags": [
"curios:artifact"
]
}
合成转化(Crafting Transmute)向后移植
Reliable Recipes 向后移植了 minecraft:crafting_transmute 合成配方类型。这允许你在合成台中升级/转换物品,同时保留其所有物品组件(如耐久度、附魔和自定义名称)。
配方字段
input(Ingredient, 必填): 被升级的物品。material(Ingredient, 必填): 所需的材料物品。material_count(Int 或 min/max 范围, 可选, 默认为 1): 所需材料的数量(例如1或{"min": 1, "max": 4})。result(Item, 必填): 输出物品。add_material_count_to_result(Boolean, 可选, 默认值: false): 如果为 true,放入合成台中的材料数量将加到结果数量中。
JSON 示例
{
"type": "minecraft:crafting_transmute",
"category": "equipment",
"input": {
"item": "minecraft:iron_pickaxe"
},
"material": {
"item": "minecraft:gold_ingot"
},
"material_count": 1,
"result": {
"id": "minecraft:golden_pickaxe"
}
}
数据驱动的酿造配方
Reliable Recipes 支持使用 26.3 版本 minecraft:brewing 配方格式的数据驱动酿造台配方。
配方字段
input(Object, 必填): 输入容器物品或药水堆叠(item/tag, 可选potion_contents)。reagent(Ingredient, 必填): 放置在酿造台顶部槽位的原料物品。output(ItemStack, 必填): 带有组件的结果物品堆叠输出。
JSON 示例
{
"type": "minecraft:brewing",
"input": {
"item": "minecraft:potion",
"potion_contents": {
"potions": "minecraft:awkward"
}
},
"reagent": {
"item": "minecraft:turtle_helmet"
},
"output": {
"id": "minecraft:potion",
"components": {
"minecraft:potion_contents": {
"potion": "minecraft:turtle_master"
}
}
}
}
模组兼容性
- Reliable Removal: 自动移除与 Reliable Removal 黑名单中隐藏的项目相关的配方和标签列表。
- EMI 集成: 在 EMI 中将鼠标悬停在配方输出上时(处于开发模式),按下 Delete 键,即可自动向
./config/reliable_recipes/generated_removals.json添加一条移除规则。
文档与维基
如需更多高级示例和详细信息,请参阅我们的维基: Modded Minecraft Wiki
许可证
Reliable Recipes
A powerful, developer-friendly utility designed for manipulating recipes and tags through simple JSON configuration. Reliable Recipes allows modpack creators to effortlessly add, remove, or modify recipes and tags using standard JSON files, without the need for complex scripting (looking at you, KubeJS!).
Getting Started
Reliable Recipes watches the reliable_recipes/ folder in your Minecraft instance for JSON files:
- Location: Place your JSON files in
./config/reliable_recipes/(or./reliable_recipes/). Subdirectories are also supported. - Format: Files can contain modification rules within a JSON array, or standard Minecraft/modded recipe JSON objects:
[
{
"action": "remove_recipe",
"mod": "examplemod",
"type": "minecraft:crafting_shaped"
}
]
You can also drop standalone recipe JSON files (e.g., standard crafting, smelting, stonecutting, or brewing recipes) directly into reliable_recipes/ without needing to build a datapack!
Recipe Actions
Once you've filtered which recipes to modify, you apply an action using the "action" property.
1. remove_recipe (or remove)
Completely removes the matching recipes from the game.
{
"action": "remove_recipe",
"id": [
"minecraft:wooden_pickaxe",
"minecraft:wooden_hoe"
]
}
2. replace_input
Scans ingredients and replaces target items/tags with replacements.
target: The item ID or tag (e.g.#minecraft:logs) to find.replacement: The item ID or tag to use instead. Can be a string or an array of items.
{
"action": "replace_input",
"target": "minecraft:stick",
"replacement": [
"minecraft:bamboo",
"minecraft:stick"
],
"mod": "minecraft"
}
3. replace_output
Changes the result of matching recipes.
replacement: The new item ID for the output.
{
"action": "replace_output",
"replacement": "minecraft:golden_apple",
"id": "minecraft:cake"
}
4. prevent_repair
Blocks specific items from being repaired across all standard repair methods. Supports item IDs, tags ("#minecraft:swords" or "minecraft:enchantable/durability"), regex ("/.*_pickaxe/"), or arrays.
{
"action": "prevent_repair",
"target": "minecraft:diamond_pickaxe"
}
5. set_repair_material
Overrides the repair material required to repair a specific tool or weapon in the Anvil. Supports item IDs, tags ("#c:iron_ingots", "tag:c:iron_ingots"), regex ("/.*_slag/"), or arrays for both target and material.
{
"action": "set_repair_material",
"target": "minecraft:diamond_sword",
"material": "minecraft:dirt"
}
6. add_recipe (or add)
Adds custom recipes directly, without needing a datapack. Works with all vanilla recipe types, and any modded recipe types.
- Recipe ID: If an
"id"is specified (e.g."id": "reliable_recipes:custom_recipe"), that ID is used. If omitted, the recipe ID is automatically generated from the file name and path. Specifying an existing recipe ID overrides that recipe.
Example using the add_recipe wrapper:
{
"action": "add_recipe",
"id": "reliable_recipes:dirt_to_stick",
"recipe": {
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:dirt"
}
],
"result": {
"count": 4,
"id": "minecraft:stick"
}
}
}
Or drop raw recipe JSON directly:
Any standard Minecraft recipe JSON file (e.g. my_crafting_recipe.json or recipes/stonecutting/cut_copper.json) placed directly inside reliable_recipes/ will automatically be loaded!
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"#": {
"item": "minecraft:stick"
}
},
"pattern": [
"###",
"###",
"###"
],
"result": {
"count": 1,
"id": "minecraft:diamond"
}
}
Filters
Filters determine which recipes are affected. A recipe must match all provided filter fields to be selected.
| Field | Description | Example |
|---|---|---|
output |
The registry name of the item produced. | "minecraft:stone_pickaxe" |
id |
The specific ID of a recipe. | "minecraft:black_bed_from_white_bed" |
mod |
The mod ID that owns the recipe. | "farmersdelight" or ["create", "mekanism"] |
type |
The recipe type. | "minecraft:smoking" |
input |
Matches if the recipe contains this ingredient. | "minecraft:stick" or "#minecraft:logs" |
Tag Modifications
Strip tags from items or empty tags entirely. This helps clean up JEI/EMI displays or isolate items.
1. remove_all_tags (or remove_tag)
Removes all tag associations from the specified items.
{
"action": "remove_all_tags",
"id": [
"minecraft:stick",
"minecraft:cake"
]
}
2. remove_from_tag
Removes specific items from a specific tag.
{
"action": "remove_from_tag",
"tag": "minecraft:planks",
"id": "minecraft:oak_planks"
}
3. clear_tag
Empties all items/blocks from the specified tags.
{
"action": "clear_tag",
"tags": [
"curios:artifact"
]
}
Crafting Transmute backport
Reliable Recipes backports the minecraft:crafting_transmute crafting recipe type. This allows you to upgrade/convert
items in a crafting grid while preserving all of their item components (such as durability, enchantments, and custom
names).
Recipe Fields
input(Ingredient, required): The item being upgraded.material(Ingredient, required): The material item(s) needed.material_count(Int or min/max Bounds, optional, defaults to 1): How many materials are required (e.g.1or{"min": 1, "max": 4}).result(Item, required): The item output.add_material_count_to_result(Boolean, optional, default: false): If true, the quantity of materials placed in the grid will be added to the result count.
Example JSON
{
"type": "minecraft:crafting_transmute",
"category": "equipment",
"input": {
"item": "minecraft:iron_pickaxe"
},
"material": {
"item": "minecraft:gold_ingot"
},
"material_count": 1,
"result": {
"id": "minecraft:golden_pickaxe"
}
}
Data-Driven Brewing Recipes
Reliable Recipes supports data-driven brewing stand recipes using the 26.3 minecraft:brewing recipe type format.
Recipe Fields
input(Object, required): Input container item or potion stack (item/tag, optionalpotion_contents).reagent(Ingredient, required): Ingredient item placed in the top slot of the brewing stand.output(ItemStack, required): Resulting item stack output with components.
Example JSON
{
"type": "minecraft:brewing",
"input": {
"item": "minecraft:potion",
"potion_contents": {
"potions": "minecraft:awkward"
}
},
"reagent": {
"item": "minecraft:turtle_helmet"
},
"output": {
"id": "minecraft:potion",
"components": {
"minecraft:potion_contents": {
"potion": "minecraft:turtle_master"
}
}
}
}
Mod Compatibility
- Reliable Removal: Automatically removes recipe and tag listings for items hidden with Reliable Removal's blacklist.
- EMI Integration: Press the delete key while hovering over a recipe output in EMI (while in dev mode) to
automatically append a removal rule to
./config/reliable_recipes/generated_removals.json.
Documentation & Wiki
For more advanced examples and details, see our wiki: Modded Minecraft Wiki
License
下载 Reliable Recipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Recipes
下载 Reliable Recipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Recipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Recipes
下载 Reliable Recipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Recipes
下载 Reliable Recipes
下载 Reliable Recipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reliable Recipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新增
- API 更新。
修复
- 配方查看器不再在服务器端其他模组的同步规则更改时完全重新加载。
修复
- 减少了加入世界时大型隐藏物品列表导致的卡顿。
新增
remove_recipe规则现在可以使用items替代output。
修复
- 没有过滤条件的
remove_recipe规则不再移除所有配方。现在它们会被跳过并在日志中发出警告。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧