Recipe Helper
Recipe Helper 是一款 Minecraft 模组,添加了 /recipe_helper 命令,允许你在游戏运行时动态管理合成配方。
所有子命令都需要 权限等级 2(即默认的 OP 权限)。
? 新版本 (>1.0)
该模组已完全重写。旧版本(≤1.0)中的配方与这个新版本 不兼容。配方现在以标准 JSON 格式生成,而不是旧的自定义格式。
命令
命令系统已大幅简化。请使用:
/recipe_helper openGUI
来打开图形用户界面。所有的配方管理(添加、编辑、删除)现在都通过 GUI 完成。旧的基于命令的配方创建和移除功能已被移除。
配方存储
所有创建或修改的配方存储在:
config/registerhelper/recipes
支持的模组
此模组支持为以下模组创建和修改配方:
- Avaritia (Endless: Reborn)
- Eternis Starry Sky
- Mystical Agriculture
- Botania
- Farmer's Delight
- 以及更多!
导出支持
配方可以导出为以下代码:
⚠️ 注意: 以下导出命令已不再维护,可能无法正常工作:
/recipe_helper export kubejs single # 将所有配方导出到单个 KubeJS 文件
/recipe_helper export kubejs multiple # 将所有配方导出到多个 KubeJS 文件
/recipe_helper export crafttweaker single # 将所有配方导出到单个 CraftTweaker 文件
/recipe_helper export crafttweaker multiple # 将所有配方导出到多个 CraftTweaker 文件
text
重载配方
在服务器上使用该模组时:
- 必须从 服务器控制台 执行
/reload 命令(OP 在客户端执行 /reload 无效)。
- OP 可以使用以下命令同步配方:
/recipe_helper reload
text
这将完全重载数据包,等效于服务器控制台的 /reload 命令。
NBT 处理
- 鼠标中键 点击带有 NBT 数据的物品以完全忽略 NBT。
- Shift + 鼠标中键 进入 精确匹配界面,允许你配置要忽略哪些 NBT 标签。
- 提供针对 Bamboo Mod (SlashBlade) 剑的默认预设。
- 配置文件还允许你修改物品默认是否携带 NBT。
?️ 通过 JSON 创建配方处理器
你可以通过在以下位置放置 JSON 文件来添加自定义配方处理器:
config/registerhelper/processor
text
JSON 示例:
{
"processor": {
"modid": "eternisstarrysky",
"methods": {
"isModLoaded": {
"condition": {
"type": "forge:mod_loaded",
"modid": "eternisstarrysky"
}
},
"getSupportedRecipeTypes": {
"return": ["vanilla_workbench_s"]
},
"createRecipeJson": {
"generator": "shapeless",
"recipeType": "eternisstarrysky:vanilla_workbench_s"
}
}
},
"recipeType": {
"type": "vanilla_workbench_s",
"displayName": "Vanilla Special Workbench",
"layout": "custom_layout_id"
}
}
将 JSON 文件放置在 config/registerhelper/processor 并重启游戏。处理器将自动加载并出现在 GUI 中。
内置布局
该模组包含以下内置布局 ID:
rectangular_3x3, rectangular_9x9, rectangular_4x1, rectangular_1x1, rectangular_2x2, rectangular_5x5, rectangular_11x11, minecraft_brewing, stonecutting, smithing, runic_altar, arc_furnace, infusion, reprocessor, cutting, cooking, emptying, create_cutting, compacting, filling.
未来的更新中将添加更多模组集成。
?️ 画廊
(截图占位符)
? 旧版本 (≤1.0)
注意:这些命令适用于较旧的版本(≤1.0),此处仅保留供参考。
命令
text
/recipe_helper gui
打开图形配方管理界面。
修改或添加配方后,使用:
text
/recipe_helper reload
来重新加载配方。
添加配方
有形状合成:
text
/recipe_helper add shaped <result> <count> <pattern>
<result>: 输出物品
<count>: 输出数量(1–64)
<pattern>: 图案字符串
示例:
text
/recipe_helper add shaped minecraft:diamond 1 "###,# #,###;#:minecraft:iron_ingot"
(铁锭环状排列合成钻石)
无形状合成:
text
/recipe_helper add shapeless <result> <count> <ingredients>
<result>: 输出物品
<count>: 输出数量
<ingredients>: 原料列表(用 ; 分隔)
示例:
text
/recipe_helper add shapeless minecraft:stick 4 "minecraft:planks;minecraft:planks"
熔炼:
text
/recipe_helper add smelting <ingredient> <result>
示例:
text
/recipe_helper add smelting minecraft:iron_ore minecraft:iron_ingot
Avaritia (Endless: Reborn):
text
/recipe_helper add avaritia <result> <count> <tier> <pattern>
<tier>: 奇点工作台层级(1–4)
示例:
text
/recipe_helper add avaritia minecraft:nether_star 1 4 "###,###,###;#:minecraft:diamond_block"
其他旧版命令
text
/recipe_helper register
/recipe_helper reload from_json
/recipe_helper delete recipe <recipe_id>
/recipe_helper delete all confirm
/recipe_helper delete list
/recipe_helper clear
/recipe_helper count
/recipe_helper help
旧版兼容性说明
兼容 Avaritia: Endless Reborn(不包括压缩机配方的修改)。
所有配方存储在 config/recipes 中。
⚠️ 重要提示
动态修改配方是一项高级功能,可能会影响其他模组的逻辑。
强烈建议仅在测试环境或需要热重载配方的服务器上使用该模组。
在执行批量操作(如删除所有配方)时请格外小心。
? 要求
对于版本 ≥1.6,JEI 版本必须 ≥ 15.20.0.112,才能正确显示酿造台和铁砧配方。
Recipe Helper
Recipe Helper is a Minecraft mod that adds the /recipe_helper command, allowing you to dynamically manage crafting recipes while the game is running.
All subcommands require permission level 2 (i.e., default OP privileges).
? New Version (>1.0)
The mod has been completely rewritten. Old recipes from versions ≤1.0 are not compatible with this new version. Recipes are now generated in standard JSON format instead of the old custom format.
Commands
The command system has been greatly simplified. Use:
/recipe_helper openGUI
to open the graphical user interface. All recipe management (adding, editing, deleting) is now done through the GUI. The old command-based recipe creation and removal have been removed.
Recipe Storage
All created or modified recipes are stored in:
config/registerhelper/recipes
Supported Mods
This mod supports recipe creation and modification for:
- Avaritia (Endless: Reborn)
- Eternis Starry Sky
- Mystical Agriculture
- Botania
- Farmer's Delight
- And more!
Export Support
Recipes can be exported as code for:
⚠️ Note: The following export commands are no longer maintained and may not work:
/recipe_helper export kubejs single # Export all recipes to a single KubeJS file
/recipe_helper export kubejs multiple # Export all recipes to multiple KubeJS files
/recipe_helper export crafttweaker single # Export all recipes to a single CraftTweaker file
/recipe_helper export crafttweaker multiple # Export all recipes to multiple CraftTweaker files
text
Reloading Recipes
When using the mod on a server:
- The
/reload command must be executed from the server console (OP executing /reload client-side will not work).
- OPs can use the following command to synchronize recipes:
/recipe_helper reload
text
This fully reloads the datapack, equivalent to the server console /reload command.
NBT Handling
- Middle-click on an item with NBT data to completely ignore NBT.
- Shift + Middle-click to enter the exact matching interface, allowing you to configure which NBT tags to ignore.
- A default preset is available for Bamboo Mod (SlashBlade) swords.
- The configuration file also allows you to modify whether items carry NBT by default.
?️ Creating Recipe Processors via JSON
You can add custom recipe processors by placing JSON files in:
config/registerhelper/processor
text
Example JSON:
{
"processor": {
"modid": "eternisstarrysky",
"methods": {
"isModLoaded": {
"condition": {
"type": "forge:mod_loaded",
"modid": "eternisstarrysky"
}
},
"getSupportedRecipeTypes": {
"return": ["vanilla_workbench_s"]
},
"createRecipeJson": {
"generator": "shapeless",
"recipeType": "eternisstarrysky:vanilla_workbench_s"
}
}
},
"recipeType": {
"type": "vanilla_workbench_s",
"displayName": "Vanilla Special Workbench",
"layout": "custom_layout_id"
}
}
Place the JSON file in config/registerhelper/processor and restart the game. The processor will load automatically and appear in the GUI.
Built-in Layouts
The mod includes the following built-in layout IDs:
rectangular_3x3, rectangular_9x9, rectangular_4x1, rectangular_1x1, rectangular_2x2, rectangular_5x5, rectangular_11x11, minecraft_brewing, stonecutting, smithing, runic_altar, arc_furnace, infusion, reprocessor, cutting, cooking, emptying, create_cutting, compacting, filling.
More mod integrations will be added in future updates.
?️ Gallery
(Placeholder for screenshots)
? Legacy Version (≤1.0)
Note: These commands are for older versions (≤1.0) and are kept here for reference only.
Commands
text
/recipe_helper gui
Opens the graphical recipe management interface.
After modifying or adding recipes, use:
text
/recipe_helper reload
to reload the recipes.
Add Recipes
Shaped:
text
/recipe_helper add shaped <result> <count> <pattern>
<result>: Output item
<count>: Output quantity (1–64)
<pattern>: Pattern string
Example:
text
/recipe_helper add shaped minecraft:diamond 1 "###,# #,###;#:minecraft:iron_ingot"
(Iron ingots in a ring shape craft a diamond)
Shapeless:
text
/recipe_helper add shapeless <result> <count> <ingredients>
<result>: Output item
<count>: Output quantity
<ingredients>: List of ingredients (separated by ;)
Example:
text
/recipe_helper add shapeless minecraft:stick 4 "minecraft:planks;minecraft:planks"
Smelting:
text
/recipe_helper add smelting <ingredient> <result>
Example:
text
/recipe_helper add smelting minecraft:iron_ore minecraft:iron_ingot
Avaritia (Endless: Reborn):
text
/recipe_helper add avaritia <result> <count> <tier> <pattern>
<tier>: Singularity Workbench tier (1–4)
Example:
text
/recipe_helper add avaritia minecraft:nether_star 1 4 "###,###,###;#:minecraft:diamond_block"
Other Legacy Commands
text
/recipe_helper register
/recipe_helper reload from_json
/recipe_helper delete recipe <recipe_id>
/recipe_helper delete all confirm
/recipe_helper delete list
/recipe_helper clear
/recipe_helper count
/recipe_helper help
Legacy Compatibility Notes
Compatible with Avaritia: Endless Reborn (excluding compressor recipe modifications).
All recipes are stored in config/recipes.
⚠️ Important Notes
Dynamically modifying recipes is an advanced feature and may affect the logic of other mods.
It is strongly recommended to use this mod only in a testing environment or on servers that require hot-reloading of recipes.
Be extremely cautious when performing bulk operations such as deleting all recipes.
? Requirements
For version ≥1.6, JEI version must be ≥ 15.20.0.112 for brewing stand and anvil recipes to display correctly.
评论 0
登录后参与评分
还没有评论,来抢沙发吧