Recipe Crafter
一款模组,让整合包制作者和地图创作者能够在工作台方块内可视化地编写 Minecraft 配方,无需 KubeJS、数据包 JSON 或外部工具。配方被写入单个可手动编辑的配置文件中,并立即生效。
概述
放置一个 Recipe Crafter 方块,打开它,通过将物品拖入熟悉的工作台网格来构建配方。从下拉菜单中选择配方类型,设置结果,填写 ID,然后点击 Save(保存) —— 配方将追加到 config/recipecrafter/recipes.json5 中并立即变为可合成状态(无需重启)。您还可以 Export(导出) 生成的 JSON 到您的剪贴板以用于数据包/KubeJS,或者 Load(加载) 游戏中已存在的配方并进行编辑。
Recipe Crafter 方块
- 一个独立的方块 + 物品 (
recipecrafter:recipe_crafter),拥有自定义的 Blockbench 模型。 - 仅限创造模式: 不提供合成配方;出现在 Redstone(红石) 创造模式标签页中,位于工作台之后。
- 方块实体背包(13 个槽位),其内容在打开/关闭界面和世界重载之间保持持久化,并且在被破坏时会像箱子一样散落物品。
支持的配方类型
从下拉菜单中选择;GUI 会根据每种类型切换为匹配的 vanilla 工作台纹理和槽位布局:
| 类型 | Vanilla 配方 | 布局 |
|---|---|---|
| Crafting Table | crafting_shaped / crafting_shapeless |
3×3 网格 + 结果 |
| Furnace | smelting |
单个输入 + 结果 |
| Blast Furnace | blasting |
单个输入 + 结果 |
| Smoker | smoking |
单个输入 + 结果 |
| Campfire | campfire_cooking |
单个输入 + 结果(烟熏面板) |
| Stonecutter | stonecutting |
单个输入 + 结果 |
| Smithing Table | smithing_transform |
模板 + 基础 + 附加 + 结果 |
- Shapeless(无形状) 开关适用于合成配方(其他类型隐藏)。
- Shaped(有形状) 合成自动计算最小图案边界框和紧凑的键映射(因此角落中的 1×1 物品会成为 1×1 配方,而不是 3×3)。
- Cooking(烹饪) 配方捕获烹饪时间(具有合理的每类型默认值:200 / 100 / 600 tick)和经验值。
- Stonecutting(切石机) 携带输出数量。
- Smithing(锻造) 需要所有三个组件(模板、基础、附加)。
编辑器 GUI
左侧面板
- 类型下拉菜单 — 切换配方家族;面板纹理和槽位会实时更新。
- 无形状复选框 — 仅用于合成。
- 编辑字段 + “编辑”按钮 — 输入配方 ID(
namespace:path)以加载已注册的现有配方回到网格中进行修改。 - “加载配方(s)”按钮 — 查找与当前内容匹配的配方。
中间
- 工作台网格 / 输入槽以及一个结果预览槽,你可以将输出拖入其中。
右侧
- 完成 — 打开确认界面。
确认/保存界面
通过 Done 打开。字段如下:
-
配方 ID — 默认填充为
recipecrafter:<结果物品>;可编辑。 -
组 — 可选;占位符提示 + 支持从游戏中已存在的组中按 Tab 键自动补全。
-
类别 — 仅在制作/烹饪(使用此类型的类型)时显示;提供有效的原版类别,并支持按 Tab 键自动补全。
-
烹饪时间(刻) 和 经验值 — 仅显示在烹饪配方中。
操作:
- 保存 — 将配方写入
recipes.json5,刷新配方,并将 ID 复制到剪贴板。 - 导出到剪贴板 — 构建配方的 JSON 数据并将其复制(不会保存)。
- 取消 — 返回编辑器,同时保留所有已输入的内容。
成功 保存 或 导出 后,合成台会清空自身(内容返还给你,输入 reset),以便下一个配方从零开始。取消操作则保持一切不变。
体验优化:当 ID 未填写 且 配方无效时,提交按钮呈灰色;界面打开时,屏幕字段会滑动并淡入。
加载与查找现有配方
- 按 ID 编辑:将已注册的配方拆解回合成台的网格中——支持有形状、无形状、所有烹饪类型、切石机以及锻造台转换配方。
- 查找:搜索与当前内容匹配的配方:
- 如果结果槽位中有物品 → 找出所有能产出该物品的配方。
- 否则,如果网格已填满 → 返回第一个匹配的合成果方。
- 最多返回 20 个匹配项,以可滚动列表显示,每个匹配项均包含其 ID、类型以及 复制 ID / 复制 JSON 按钮。
配置文件:recipes.json5
位于 config/recipecrafter/recipes.json5。
- 随时可手动编辑:每个条目都是一个带有唯一
"id"的普通原版配方 JSON。 - 宽松解析:支持
//注释和尾部逗号。 - 保留注释与格式保存:新配方会 插入 到数组中,而不是重写整个文件,因此你的注释和手动排版在每次保存后都会保留。
- 手动编辑后,执行
/recipecrafter reload(或重新启动)即可应用更改。
示例形状:
{
"recipes": [
{ "id": "recipecrafter:my_recipe", "type": "minecraft:crafting_shaped", ... }
]
}
Recipe Crafter
A mod that lets modpackers and map-makers author Minecraft recipes visually, inside a workbench block — no KubeJS, datapack JSON, or external tools required. Recipes are written to a single hand-editable config file and go live instantly.
Overview
Place a Recipe Crafter block, open it, and build a recipe by dropping items
into a familiar workbench grid. Pick the recipe family from a dropdown, set the
result, fill in an id, and click Save — the recipe is appended to
config/recipecrafter/recipes.json5 and becomes craftable immediately (no
restart). You can also Export the generated JSON to your clipboard for use
in datapacks/KubeJS, or Load and edit recipes that already exist in the game.
The Recipe Crafter Block
- A standalone block + item (
recipecrafter:recipe_crafter) with a custom Blockbench model. - Creative-only: ships with no crafting recipe; appears in the Redstone creative tab, right after the Crafting Table.
- Block entity inventory (13 slots) that persists its contents across open/close and world reloads, and scatters its items like a chest when broken.
Supported Recipe Types
Selected from a dropdown; the GUI swaps to the matching vanilla workbench texture and slot layout for each:
| Type | Vanilla recipe | Layout |
|---|---|---|
| Crafting Table | crafting_shaped / crafting_shapeless |
3×3 grid + result |
| Furnace | smelting |
single input + result |
| Blast Furnace | blasting |
single input + result |
| Smoker | smoking |
single input + result |
| Campfire | campfire_cooking |
single input + result (smoker panel) |
| Stonecutter | stonecutting |
single input + result |
| Smithing Table | smithing_transform |
template + base + addition + result |
- Shapeless toggle is available for crafting recipes (hidden for other types).
- Shaped crafting auto-computes the minimal pattern bounding box and a compact key map (so a 1×1 item in the corner becomes a 1×1 recipe, not 3×3).
- Cooking recipes capture cook time (with sensible per-type defaults: 200 / 100 / 600 ticks) and experience.
- Stonecutting carries the output count.
- Smithing requires all three pieces (template, base, addition).
The Editor GUI
Left panel
- Type dropdown — switch recipe family; the panel texture and slots update live.
- Shapeless checkbox — crafting only.
- Edit field + "Edit" button — type a recipe id (
namespace:path) to load an existing registered recipe back into the grid for modification. - "Load recipe(s)" button — finds recipes that match the current contents.
Center
- The workbench grid / inputs and a result preview slot you drag the output into.
Right
- Done — opens the confirm screen.
Confirm / Save Screen
Opened via Done. Fields:
- Recipe ID — prefilled as
recipecrafter:<result item>; editable. - Group — optional; placeholder hints + Tab-to-autofill from groups that already exist in the game.
- Category — shown only for crafting/cooking (the types that use it); offers the valid vanilla categories with Tab-autofill.
- Cook time (ticks) and XP — shown only for cooking recipes.
Actions:
- Save — writes the recipe to
recipes.json5, refreshes recipes, and copies the id to your clipboard. - Export to Clipboard — builds the recipe JSON and copies it (does not save).
- Cancel — returns to the editor with all contents preserved.
After a successful Save or Export, the crafter wipes itself clean (contents returned to you, type reset) so the next recipe starts fresh. Cancel leaves everything untouched.
Quality-of-life: commit buttons are greyed until the id is filled and the recipe is valid, and the screen fields slide and fade in when it opens.
Loading & Looking Up Existing Recipes
- Edit by id decomposes a registered recipe back into the crafter's grid — supports shaped, shapeless, all cooking types, stonecutting, and smithing-transform recipes.
- Lookup searches for recipes matching the current contents:
- If the result slot has an item → every recipe that produces that item.
- Otherwise, if the grid is filled → the first matching crafting recipe.
- Returns up to 20 matches in a scrollable list, each with its id and type and Copy ID / Copy JSON buttons.
Config File: recipes.json5
Located at config/recipecrafter/recipes.json5.
- Hand-editable at any time. Each entry is a normal vanilla recipe JSON
augmented with a unique
"id". - Lenient parsing:
//comments and trailing commas are tolerated. - Comment- and formatting-preserving saves: new recipes are spliced into the array rather than rewriting the file, so your comments and hand-formatting survive every save.
- Edit by hand, then
/recipecrafter reload(or relaunch) to apply.
Example shape:
{
"recipes": [
{ "id": "recipecrafter:my_recipe", "type": "minecraft:crafting_shaped", ... }
]
}
下载 Recipe Crafter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Recipe Crafter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Recipe Crafter
下载 Recipe Crafter
下载 Recipe Crafter
下载 Recipe Crafter
下载 Recipe Crafter
下载 Recipe Crafter
下载 Recipe Crafter
farm and charm + alloyed 兼容
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧