Back to mods
One Enough Value project artwork

CurseForge · Minecraft mod

One Enough Value

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which One Enough Value release should I use?

Updated 5 days ago
Latest stable file OneEnoughValue-1.0.0-1.21.1.jar
Game version 1.21.1
Loader NeoForge

One Enough Value OneEnoughValue-1.0.0-1.21.1.jar targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 3 required mods have matching files.

Where it goes

Is One Enough Value required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does One Enough Value OneEnoughValue-1.0.0-1.21.1.jar need?

OneEnoughValue-1.0.0-1.21.1.jar. Change the file and its required mods may change too.

All 3 required mods have matching files

Install KubeJS, Better Advanced Tooltips, Rhino first. We found matching files for this game-version and loader setup. 2 come through another mod in the chain.

1 listed on this file 2 pulled in by those mods
KubeJS Needed by One Enough Value OneEnoughValue-1.0.0-1.21.1.jar
required
Matching file found Matched file: KubeJS NeoForge 2101.7.2-build.381
Better Advanced Tooltips Needed by KubeJS
pulled in
Matching file found Matched file: better-advanced-tooltips-2101.1.0-build.5.jar
Rhino Needed by KubeJS
pulled in
Matching file found Matched file: Rhino 2101.2.7-build.85

2 extra mods were pulled in by other dependencies. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add One Enough Value without breaking your instance.

Built for One Enough Value OneEnoughValue-1.0.0-1.21.1.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use OneEnoughValue-1.0.0-1.21.1.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install KubeJS, Better Advanced Tooltips, Rhino first. We found matching files for this game-version and loader setup. 2 come through another mod in the chain.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside OneEnoughValue-1.0.0-1.21.1.jar. It opens that exact file at the source.

About this project

What does One Enough Value add?

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.

Project description from CurseForge.

Pick your setup

One Enough Value by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

3 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

One Enough Value versions and loaders

8 of 8 releases match

Looking for an older file? The official CurseForge project page is in Resources.