One Enough Value

One Enough Value

An item value system similar to ProjectE, offering a convenient and highly extensible reference for item values.

by
364 Downloads
forge
Rent Server with this Mod

About this Mod

One Enough Value

This mod provides an item value system similar to ProjectE, offering a convenient and highly extensible reference for item values.

Requires KubeJS as a prerequisite.

Base Value

showcase

By default, this mod provides base values for most basic materials.

Additionally, you can add or modify base values for items using the following methods:

OEVEvents.addItemValue(event => {
    // Add base value.
    event.addBaseItemValue('minecraft:iron_nugget', 10);
    // Add extra value by matching NBT, such as Tacz's firearms.
    event.addExtraItemValue('{GunId:"tacz:m700"}', 500000);
});

If an item does not show a value, its value is 0. The methods above add a value of +10 (e.g., 0 becomes 10). These methods support negative numbers.

Item values are rounded down (e.g., 0.5 becomes 0).

If you need to interact with other mods and read values at any time, you can use the Value Manager:

// Output the item's value when the player right-clicks the item.
ItemEvents.rightClicked(event => {
    event.player.tell(OEV$ItemValueManager.getValue(event.item));
});

Processing Value

If an item has no base value, but there is a recipe that produces it, the item's value will default to the minimum sum of the ingredient values from the recipes.

For example, red dye can be crafted from a red tulip (value 16) or a beetroot (value 64), so the default value will be 16.

For recipes that produce more than one item, the value is automatically divided by the quantity. For instance, a gold ingot (default value 648) can craft 9 gold nuggets, each with a value of 72.

Vanilla recipes are set by default to use a simple summation method.

For new recipe types registered by other mods, you can set up a simple summation method using the following approach:

let $RecipeType = Java.loadClass("net.minecraft.world.item.crafting.RecipeType");
OEVEvents.addRecipeHandler(event => {
    event.addSimpleRecipeHandler($RecipeType.BLASTING);
});

Custom Processing

Here is a simple template to make the value of a crafted item ten times the sum of the ingredient values:

let $RecipeType = Java.loadClass("net.minecraft.world.item.crafting.RecipeType");
OEVEvents.addRecipeHandler(event => {
    // Add a custom recipe handler for processing value, iterating through all recipes.
    event.addCustomRecipeHandler($RecipeType.CRAFTING, recipe => {
        let value = 0;
        // Iterate through each ingredient in the recipe.
        for (let ingredient of recipe.getIngredients()) {
            // Get the minimum value of a single ingredient. For example, for an ingredient matching a tag like coal (value 128) or charcoal (value 32), it takes 32 when crafting a torch.
            let ingredientMinValue = event.getMinIngredientValue(ingredient);
            // Handle cases where the ingredient is empty or has no corresponding value. Just copy this as is.
            if (ingredientMinValue === event.getMaxInteger()) continue;
            else if (ingredientMinValue === -1) return true;
            value += ingredientMinValue;
        }
        value *= 10;
        // Set the final value for a single recipe.
        return event.defaultSetRecipeValue(recipe, value);
    });
    // Helper method to output an array containing all registered recipe types.
    console.log(event.getAllRecipeType());
});

Future Plans

  • Port to other versions.

Available Versions

One Enough Value 1.0.2release
MC 1.20.1forge
February 24, 2026
One Enough Value 1.0.0release
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6forge
December 26, 2025

How to Install One Enough Value on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.6).

3

Install Mod

Open the mod browser in the dashboard and search for "One Enough Value". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forge

Minecraft Versions

1.20.6, 1.20.5, 1.20.4 (+3 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

One Enough Value server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.6). You can switch loaders with one click in the panel.

Is One Enough Value compatible with forge?

One Enough Value officially supports forge for Minecraft 1.20.6, 1.20.5, 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with One Enough Value – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if One Enough Value consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install One Enough Value with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 only
Server-side
Required

Supported Versions

1.20.61.20.51.20.41.20.31.20.21.20.1