Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Details
OneEnoughItem
This mod was developed to solve the problem of duplicate items in the item dictionary - three types of silver, four types of zinc, five types of tomatoes, six types of corn, each with their own distinct recipes.
With OEI, you can effortlessly replace duplicate items with a single designated representative item.
Typical Cases
17 types of tomatoes in a modpack
Six variations of an ore in a modpack
And they all have independent recipes!
Those days are now gone forever! With OEI, you can replace items with their designated representative item as soon as they're created!
Usage
OEI is data-pack driven and works in data/oneenoughitem/replacements folder. Implement simple item replacement using the following JSON structure:
[
{
"matchItems": [
"minecraft:apple",
"minecraft:potato",
"minecraft:carrot"
],
"resultItems": "minecraft:egg"
},
{
"matchItems": [
"minecraft:stone",
"minecraft:white_wool",
"minecraft:oak_log"
],
"resultItems": "minecraft:redstone"
}
]
Add item IDs to be replaced in the matchItems
array, and specify the unified representative item in resultItems
for automatic in-game replacement.
With KubeJS:
ServerEvents.highPriorityData(event => {
event.addJson("oneenoughitem:replacements/raw_materials.json", [
{
"matchItems":
[
"#forge:raw_materials/silver"
],
"resultItems": "thermal:raw_silver"
}
]);
});
Effects
OEI's item replacement operates at an extremely early stage - not through real-time detection of player inventories.
How early?
For example: If you replace all game items with eggs, opening CreativeModeTabs shows this:
From the moment of creation, these items cease to be their original selves!
Consequently, related recipes also adapt. Example when replacing oak log with redstone dust:
All item recipes automatically reflect the changes.
When used with recipe managers like JEI, displayed recipes update accordingly:
Essentially, all JEI-supported recipes are automatically compatible. Even unsupported recipes (excluding hard-coded implementations) will function with replacements.
Difference from Almost Unified
Almost Unified provides a primary item for configured tags and makes recipes use that item.
OEI completely bypasses the tag system, taking a resolute approach to item replacement. It achieves more decisive and thorough unification of similar items - all replaced items become permanently inaccessible in-game.
Future Plans
- None at the moment. Suggestions are welcome!