Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
Recipe Editor Workshop (REW) is a visual recipe editing tool for modpack authors, targeting the recipe system of GregTech CEu Modern. The mod opens a graphical interface via in-game commands, allowing you to browse the recipe library, create and modify recipes, disable unwanted recipes, and export your edits as KubeJS scripts.
The mod does not add any items or blocks; all functionality is implemented through the graphical interface and commands.
Requirements
- Minecraft 1.20.1
- Forge 47.4.22 or above
- GregTech CEu Modern 7.5.3 or above
- LDLib 1.0.40 or above
- nova_mainlib 0.1.1 or above
- KubeJS 2001 or above (optional, only required when exporting scripts)
Commands
| Command | Description |
|---|---|
/rew |
Opens the main recipe editor interface |
/rew gtm |
Opens the recipe overview, where you can multi-select recipes to disable or restore |
/rew reload |
Rescans the recipe library |
/rew save |
Writes the disabled list and drafts to disk |
/rew kjsexpt |
Exports edited recipes as KubeJS scripts |
/rew info |
Outputs the current index status |

The left side of the interface shows the list of recipe types, and the right side shows the recipes of the selected type. Both columns can be searched by Chinese name, pinyin, or ID. A scrollbar is provided on the right side of each list and can be dragged directly. Right-clicking any recipe type creates a new empty recipe of that type.
Each row in the recipe list displays the icon of the recipe's first output on the left. Items use their own textures, and fluids use their own textures.
All recipe types share the same editing interface, which consists of three tables: the input table on the left, the output table on the right, and the conditions table below. Each table is divided into item and fluid sections, where entries can be added and removed individually, and amounts and output chances can be configured. At the top of the interface, you can set the recipe duration, input power, and current.
The conditions table lists all additional conditions of the recipe. Condition contents are stored in GregTech's own serialization format, so condition types added by other mods are also supported.
Recipe Overview
Displays all recipes of a given recipe type as a multi-select list. Left-click to multi-select, press Del to disable the selected entries, press Ins to restore the selected entries, and right-click a single recipe to toggle its enabled state directly.
Disabled recipes are not loaded into the game, and neither machines nor JEI will display them anymore, but their full contents remain saved in the configuration files and can be restored at any time.
Data Storage
Editing data is stored in the config/rew/ directory under the game directory:
snapshot.json: recipe library snapshot cache, used to speed up subsequent startupsdisabled.json: list of disabled recipe IDsdrafts/: newly created and modified recipes, one file per recipeexport/: KubeJS export results
Implementation
The mod hooks into the recipe generation process through GregTech CEu Modern's official addon interface IGTAddon, and does not contain any Mixins.
Disabling recipes is implemented through IGTAddon#removeRecipes; matched recipes are removed during the loading stage and do not enter the game's recipe table. New and modified recipes are injected through IGTAddon#addRecipes, using the same datapack pathway as GregTech's own generated recipes, so running /reload applies them.
Recipe scanning is performed on the client side, reading the recipe library already synced to the client and caching it locally. The server does not participate in the editing process.
Configuration
config/rew.yaml provides the following options:
enableEditor: whether to enable the/reweditor, enabled by defaultuseSnapshotCache: whether to reuse the recipe snapshot cache, enabled by defaultalwaysRescan: whether to rescan on every startup, disabled by defaultkubejsExportDir: KubeJS script export directory, defaults tokubejs/server_scripts/rew
New in 0.3.3
- Special support for GT programming circuits in GTM
- NBT is now allowed on both inputs and outputs
- Items can be selected from the inventory as inputs or outputs
![NBT and inventory selection support]
Performance Reference
- Reference machine: i5-12400 / 8G DDR4-3200 / UHD730
- Launcher: PCL2
- Memory allocation: 2G (
-Xms2G -Xmx2G) - Additional optimization mods: Embeddium, Fast Tag, KAllFix
- Actual experience: with sufficient memory, no stuttering occurred when selecting recipe types with 6K+ recipes
中文版
配方编辑工坊(Recipe Editor Workshop,简称 REW)
面向整合包作者的可视化配方编辑工具,以 GregTech CEu Modern 的配方体系为编辑对象。模组不添加任何物品与方块,全部功能通过图形界面与指令实现。
基本信息
| 项目 | 要求 |
|---|---|
| Minecraft | 1.20.1 |
| Forge | 47.4.22 及以上 |
| GregTech CEu Modern | 7.5.3 及以上 |
| LDLib | 1.0.40 及以上 |
| nova_mainlib | 0.1.1 及以上 |
| KubeJS | 2001 及以上(可选,仅在导出脚本时需要) |
模组通过游戏内指令打开图形界面,可用于浏览配方库、新建与修改配方、禁用不需要的配方,并可将编辑结果导出为 KubeJS 脚本。
指令
| 指令 | 作用 |
|---|---|
/rew |
打开配方编辑器主界面 |
/rew gtm |
打开配方总览,可多选后禁用或恢复 |
/rew reload |
重新扫描配方库 |
/rew save |
将禁用表与草稿写入磁盘 |
/rew kjsexpt |
将编辑过的配方导出为 KubeJS 脚本 |
/rew info |
输出当前索引状态 |
界面说明
主界面
界面左侧为配方类型列表,右侧为该类型的配方列表,两列均可按中文名、拼音或 ID 搜索。列表右侧带有滚动条,可直接拖动。右键任意配方类型可新建该类型的空配方。
配方列表每一行左侧显示该配方首个产出的图标:物品使用物品自身的贴图,流体使用流体自身的贴图。

配方编辑界面
所有配方类型共用同一套编辑界面,由三张表组成:
- 左侧输入表
- 右侧输出表
- 下方条件表
每张表分为物品与流体两段,可分别添加与删除条目,并设置数量与产出概率。界面顶部可设置配方耗时、输入功率与电流。
条件表列出该配方的全部附加条件,条件内容以 GregTech 自身的序列化格式保存,因此其他模组新增的条件类型同样可用。
配方总览
以多选列表的形式展示某个配方类型的全部配方:
- 左键点击:多选
- Del 键:禁用选中项
- Ins 键:恢复选中项
- 右键单条配方:直接切换其启用状态
被禁用的配方不会被加载进游戏,机器与 JEI 都不会再显示它们,但其完整内容仍保存在配置文件中,可随时恢复。
数据与实现
数据存储
编辑数据保存在游戏目录下的 config/rew/ 目录中:
| 文件/目录 | 说明 |
|---|---|
snapshot.json |
配方库快照缓存,用于加快后续启动 |
disabled.json |
被禁用的配方 ID 列表 |
drafts/ |
新建与修改后的配方,一条配方一个文件 |
export/ |
KubeJS 导出结果 |
实现方式
模组通过 GregTech CEu Modern 官方提供的附属模组接口 IGTAddon 接入配方生成流程,不包含任何 Mixin。
- 禁用配方:通过
IGTAddon#removeRecipes实现,命中的配方在加载阶段被移出,不进入游戏的配方表。 - 新增与修改配方:通过
IGTAddon#addRecipes注入,与 GregTech 自身生成配方使用同一条数据包通路,因此执行/reload即可生效。
配方扫描在客户端进行,读取客户端已同步的配方库并缓存到本地,服务端不参与编辑过程。
配置项
config/rew.yaml 提供以下选项:
| 选项 | 说明 | 默认值 |
|---|---|---|
enableEditor |
是否启用 /rew 编辑器 |
开启 |
useSnapshotCache |
是否复用配方快照缓存 | 开启 |
alwaysRescan |
是否每次启动都重新扫描 | 关闭 |
kubejsExportDir |
KubeJS 脚本导出目录 | kubejs/server_scripts/rew |
0.3.3 追加功能
- 对 GTM 中的编程电路进行特殊适配;
- 允许输入和输出都带有 NBT;
- 允许从背包中选取物品作为输入或输出。
![0.3.3 功能示意]
性能参考
| 项目 | 配置 |
|---|---|
| 参考机器 | i5-12400 / 8G DDR4-3200 / UHD730 |
| 启动器 | PCL2 |
| 内存分配 | 2G(-Xms2G -Xmx2G) |
| 额外优化模组 | Embeddium、Fast Tag、KAllFix |
| 实际体感 | 内存充足的情况下,选择带有 6K+ 的配方类型未出现卡顿 |
相关链接
- GitHub 仓库:https://github.com/OSHANG-NOVA/rew


