JEI Transform
Automatically draw materials from nearby containers (chests, hoppers, modded machines, etc.) when transferring JEI recipes.
When your inventory doesn't have enough materials for a recipe, JEI's recipe transfer normally just fails. This mod makes JEI transfer search the containers around you and pull the missing materials from them, saving you from tedious manual hauling.
Features
- Nearby container sourcing: Click the JEI transfer button and missing materials are automatically taken from containers around you.
- Forge/NeoForge Capability detection: Containers are detected via the
IItemHandlercapability, so it works with vanilla chests/hoppers as well as modded machines and storage blocks that only register a capability without implementing the vanillaContainerinterface. - Partial fill: If the nearby containers can't supply the full amount, the recipe grid is still filled with whatever is available, leaving you an incomplete crafting grid instead of failing outright.
- Max transfer support: Supports JEI's max transfer mode to move multiple sets at once.
- Missing ingredient feedback: When materials are missing, JEI shows its missing-slots error so you know exactly what's short.
- Server-side execution: All transfer logic runs on the server with strict validation of recipe slots and source snapshots — no item duplication.
- Grid cleanup: Items already in the crafting grid are returned to your inventory (or dropped if full) before transferring.
Requirements
| Minecraft | Loader | JEI |
|---|---|---|
| 1.20.1 | Forge 47.x | 15.21+ (client only, mod works on dedicated server without JEI) |
| 1.21.1 | NeoForge 21.1.248+ | 19.x (client only) |
Installation
- Install the matching loader and JEI version.
- Drop the jar into the
modsfolder on both client and server (for multiplayer). - Launch the game.
Usage
- Open any menu with JEI recipe transfer support (crafting table, modded crafting stations, etc.).
- Click a recipe in JEI, then click the transfer button (the
+icon below the recipe). - If your inventory is short, the mod automatically pulls materials from containers within 8 blocks (default) around you.
- If nearby containers still can't provide everything, the available items are placed into the grid (partial fill) and JEI highlights what's still missing.
Configuration
Config file: config/jei_transform-common.toml (restart required after editing).
| Option | Default | Description |
|---|---|---|
containerSearchRadius |
8 |
Search radius in blocks (1~32). Larger radius finds more distant containers but increases search cost per transfer. |
JEI Transform
在 JEI 配方转移时,自动从玩家附近的容器(箱子、漏斗、模组机器等)中取用材料。
当玩家背包中的材料不足以合成时,JEI 的配方转移通常会直接失败。本模组让 JEI 转移功能自动搜索玩家周围的容器,并从中补充缺少的材料,省去手动搬运的繁琐操作。
功能特性
- 附近容器取料:点击 JEI 转移按钮时,若背包材料不足,自动从周围容器中提取材料放入合成格。
- 基于 Forge/NeoForge Capability 检测:通过
IItemHandlercapability 识别容器,不仅支持原版箱子/漏斗等,也兼容仅注册 capability、未实现原版Container接口的模组方块(如各类模组机器、存储设备)。 - 不完整配方填充:若附近容器的材料不足以满足全部需求,仍会把现有材料填入合成格,形成不完整配方,而不是直接失败。
- 最大转移量:支持 JEI 的最大转移模式,一次放入多组材料。
- 缺失材料提示:材料不足时,JEI 会高亮显示缺失的材料槽位,明确告知缺什么。
- 服务端执行:所有转移逻辑在服务端执行,对配方槽与来源快照进行严格校验,杜绝刷物品。
- 合成格回收:转移前合成格中已有的物品会先放回背包(背包满时掉落),不会丢失。
前置要求
| 游戏版本 | 加载器 | JEI |
|---|---|---|
| 1.20.1 | Forge 47.x | 15.21+(仅客户端需要,本模组在服务端可独立加载) |
| 1.21.1 | NeoForge 21.1.248+ | 19.x(仅客户端需要) |
安装
- 安装对应版本的加载器与 JEI。
- 将本模组 jar 放入服务端与客户端(联机时两端都需安装)的
mods文件夹。 - 启动游戏。
使用方法
- 打开任意有 JEI 配方转移支持的界面(如工作台、各类模组合成站)。
- 在 JEI 中点击要合成的配方,然后点击转移按钮(配方下方的
+图标)。 - 如果背包材料不足,本模组会自动从玩家周围默认 8 格范围内的容器中取用材料,完成转移。
- 若附近容器材料仍不足,会将现有材料部分填入合成格(不完整配方),并由 JEI 高亮提示缺少的材料。
配置
配置文件位于 config/jei_transform-common.toml,修改后需重启游戏生效。
| 配置项 | 默认值 | 说明 |
|---|---|---|
containerSearchRadius |
8 |
容器搜索半径(格),范围 1~32。增大半径可搜到更远的容器,但会增加每次转移的搜索开销。 |

