OneEnoughItem (OEI)
本模组旨在解决整合包中物品字典重复的问题——三种银、四种铅、五种番茄、六种玉米——每种都有独立的合成配方。
使用 OEI,你可以轻松地将重复物品替换为指定的唯一代表物品。
典型用例
整合包中的 17 种番茄
整合包中的六种银矿石
它们都拥有独立的配方!
那些日子一去不复返了。有了 OEI,物品在生成时立即被替换为其指定的代表物品!
使用方法
OEI 基于数据包驱动,并支持热重载。请使用以下简单语法在 data/oei/replacements 中配置替换规则:
[
{
"matchItems": [
"#forge:ore",
"minecraft:potato",
"minecraft:carrot"
],
"resultItems": "minecraft:egg"
}
]
在 matchItems 下列出要替换的物品 ID,并在 resultItems 中指定指定的代表物品。
警告:切勿将物品替换为其自身——这可能导致严重错误!
KubeJS 集成:
ServerEvents.highPriorityData(event => {
event.addJson("oei:replacements/raw_materials.json", [
{
"matchItems": ["#forge:raw_materials/silver"],
"resultItems": "thermal:raw_silver"
}
]);
});
OEI 支持标签匹配。如果基于标签的替换需要游戏重载,请改用原始物品 ID(可能是由于模组冲突所致)。
内置编辑器 (v1.0.3+):
按下 CTRL+R 打开 GUI 编辑器,即可无需编码进行替换配置!
该编辑器包含配方去重功能——请参阅官方文档。
效果
OEI 在尽可能早的阶段替换物品——而不是通过扫描玩家背包。
示例: 将所有物品替换为鸡蛋会立即改变创造模式库存:

配方会自动适应。此处展示了高炉配方中铁锭 → 鸡蛋的变化:

所有配方均自动处理,包括 JEI 显示:

适用于交易、进度以及几乎所有非硬编码的配方。
此外,将物品替换为空气(Air)将完全移除它们。但是,出于兼容性考虑,此类更改不会在创造模式库存或 JEI 显示中生效。
深度替换
在配置文件中启用此选项,可将替换扩展到物品交互上下文(例如,在将铁锭替换为鸡蛋后,用鸡蛋治疗铁傀儡)。
当标准配方替换对特定模组无效时使用。
注意:仅影响物品检测——不会完全继承原物品的功能。
路线图
- 属性剥离:移除被替换物品的属性(例如,移除食物属性以将其排除在 Spice of Life 手册之外)。可配置。
- 标签继承:使代表物品继承被替换物品的所有标签。
- 标签移除:完全剥离被替换物品的标签,以将其从配方中消除。
OneEnoughItem (OEI)
This mod was developed to resolve the issue of duplicated item dictionaries in modpacks – three types of silver, four types of lead, five types of tomatoes, six types of corn – each with distinct recipes.
With OEI, you can effortlessly replace duplicate items with unique designated representatives.
Typical Cases
17 types of tomatoes in a modpack
Six types of silver ore in a modpack
All with independent recipes!
Those days are now over. With OEI, items are replaced with their designated representatives immediately upon creation!
Usage
OEI is datapack-driven and supports hot reloading. Configure replacements at data/oei/replacements using this simple syntax:
[
{
"matchItems": [
"#forge:ore",
"minecraft:potato",
"minecraft:carrot"
],
"resultItems": "minecraft:egg"
}
]
List item IDs to replace under matchItems, and specify the designated representative in resultItems.
Warning: Never replace an item with itself – this may cause critical bugs!
KubeJS Integration:
ServerEvents.highPriorityData(event => {
event.addJson("oei:replacements/raw_materials.json", [
{
"matchItems": ["#forge:raw_materials/silver"],
"resultItems": "thermal:raw_silver"
}
]);
});
OEI supports tag matching. If tag-based replacements require game reloads, use raw item IDs instead (likely due to mod conflicts).
Built-in Editor (v1.0.3+):
Press CTRL+R to open the GUI editor for codeless replacement configuration!
The editor includes recipe deduplication – see official documentation.
Effects
OEI replaces items at the earliest possible stage – not by scanning player inventories.
Example: Replacing all items with eggs instantly transforms the creative inventory:

Recipes automatically adapt. Here, iron ingots → eggs in a furnace recipe:

All recipes are automatically processed, including JEI displays:

Works with trades, advancements, and nearly all non-hardcoded recipes.
Additionally, replacing items with air will completely remove them. However, for compatibility reasons, such changes will not take effect in the Creative Mode inventory or JEI displays.
Deep Replacement
Enable in config to extend replacements to item interaction contexts (e.g., healing iron golems with eggs after replacing iron ingots).
Use when standard recipe replacement fails for specific mods.
Note: Only affects item detection – does not fully inherit original item functionality.
Roadmap
- Properties Stripping: Remove properties of replaced items (e.g., food properties to exclude them from Spice of Life handbooks). Configurable.
- Tag Inheritance: Make representatives inherit all tags from replaced items.
- Tag Removal: Completely strip tags from replaced items to eliminate them from recipes.
下载 One Enough Item
下载 One Enough Item
下载 One Enough Item
下载 One Enough Item
下载 One Enough Item
下载 One Enough Item
下载 One Enough Item
下载 One Enough Item
下载 One Enough Item
下载 One Enough Item
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧