HomeJavaModsEnchant Calculator
Enchant Calculator
Enchant Calculator — screenshot 1Enchant Calculator — screenshot 2Enchant Calculator — screenshot 3Enchant Calculator — screenshot 4Enchant Calculator — screenshot 5Enchant Calculator — screenshot 6

Enchant Calculator

Logo

Find the cheapest way to combine enchantments. This mod calculates the optimal order to avoid wasting levels and hitting "too expensive" errors.


This mod is heavily inspired by the Enchantment Calculator mod created by FanyaOff. All credit goes to them for the original concept and design.


Overview

Enchant Calculator is a client-side mod that solves one of Minecraft's most annoying problems: combining multiple enchantments without wasting experience levels or hitting the anvil's "too expensive" limit.

When you place an item in an anvil, the mod automatically shows you exactly how to combine your enchantments in the most efficient order. No more guessing, no more wasted levels, and no more frustration.

Showcase GIF

Yes, i know the icon is AI, i suck at design..

How to Use

Step 1: Place your item in an anvil

Two panels appear on the sides of your screen.

Left Panel Preview

Right Panel Preview

Step 2: Select enchantments from the left panel

The left panel displays all available enchantments you can add to your item. If you have enchanted books in your inventory, the mod shows which ones you have. Pick the enchantments you want and set their levels.

Step 3: Click Calculate

The mod instantly analyzes hundreds or thousands of possible combination orders to find the best one.

Step 4: Follow the steps

The right panel shows you the exact order to combine your items. Each step tells you what to put in the anvil and where. Use the arrow buttons to move between steps.

Selected Enchants Stacking

Optimization Modes

The mod offers three different ways to calculate the best order:

Levels Mode - Minimizes the total number of experience levels you spend. This is what most players want and is the default mode.

XP Mode - Minimizes the total experience points instead of levels. Because higher levels cost more XP per level, this mode sometimes gives different results than Levels mode.

Work Mode - Focuses on avoiding the "too expensive" error. When you want to add many enchantments to one item, the anvil can refuse to work because the cost is over 39 levels. This mode finds combinations that stay under the limit.

Switch between modes using the mode button. The mod recalculates instantly when you change modes.

Features

GUI Scale Compatibility

The mod's interface should adapt to different GUI scales:

GUI Scale x4 and Below:

GUI Scale 4 and Below

GUI Scale x5+:

GUI Scale 5 and Above

Technical Details

The mod uses a smart algorithm to find the optimal combination order. For each set of enchantments you select, it generates all possible ways to combine them, calculates the cost for each way, and picks the cheapest one.

The algorithm accounts for:

This means you always get the mathematically best solution for your chosen mode.

Requirements

Minecraft 1.21.8 Fabric Loader Fabric API

Compatibility

Works with Minecraft 1.21.8 on Fabric. Requires Fabric API.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more