NewCraftRank SitesA free website and storeMake yours ›
AshlarFree server software built on Paper, with DDoS and backdoor protection See Ashlar ›Security RadarA free check of your server's login, anti-bot and proxy settings, only with your OK See how it works ›CommunityAsk questions, share builds and find people to play with Join the forum ›
Resources / Mods / Enchantment Calculator

Enchantment Calculator

Client-side mod that helps you find the most cost-effective way to combine enchantments on your items

ModsFree1.21 – 26.x
by FanyaOff · listed from Modrinth
Download ›

Direct download from Modrinth · 87 downloads

Enchantment Calculator screenshot 1

What it does

Enchantment Calculator is a mod made by FanyaOff. Client-side mod that helps you find the most cost-effective way to combine enchantments on your items.

It supports Minecraft 1.21 – 26.x. It has been downloaded 87 times on Modrinth. The last update came out on Nov 11, 2026.

Supported versions

26.x1.21

Release history

Enchantment Calculator has had 7 releases on Modrinth since Oct 15, 2026. 7 of them came out in the past year. The newest is 2.0.0+26.3-fair-play, released on Oct 15, 2026. It is made for Minecraft 26.3. It runs on Fabric. The download is 109 KB.

VersionReleasedMinecraftType
2.0.0+26.3-fair-playOct 15, 202626.3Release
2.0.0+26.2-fair-playOct 15, 202626.2Release
2.0.0+26.1-fair-playOct 15, 202626.1, 26.1.1, 26.1.2Release
2.0.0+1.21.11-fair-playOct 15, 20261.21.11Release
2.0.0+1.21.10-fair-playOct 15, 20261.21.10Release

Latest release on GitHub

Enchantment Calculator is open source. Its newest release on GitHub is Enchantment Calculator 1.0, published on Jul 14, 2025.

No content.

Description from the author on Modrinth

Overview

Enchantment Calculator is a client-side mod that helps you find the most cost-effective way to combine enchantments on your items.

This mod is based on the functionality provided by this website

This mod supports customization via a custom resource pack. GUI elements are located at:
assets/enchantmentcalculator/textures/gui

You can view the original textures in the source code on GitHub

If you have an idea to improve the interface by redrawing the elements or by changing the code, I would appreciate it.

Fair Play Edition

This edition helps you plan enchantments, but leaves the anvil work to you. Pick the enchantments you want, choose whether to save levels or XP, and follow the steps on screen. Use Books reads the enchanted books in your inventory and adds their enchantments to the calculator; it does not move or use the books.

There are no presets or auto-enchant controls in this edition. The mod does not click inventory slots, put items in the anvil, or take the result for you. The auto-enchantment notes below describe the regular edition.

Since 2.0 update:

  • reworked gui
  • auto-enchantment function
  • improved calculate algorithm + added way to optimize by xp
  • added a "Use Book" feature that automatically takes books from your inventory and adds their enchantments to the calculator
  • 26.x support

IMPORTANT!!!!! Before using the auto-enchantment feature, please get approval from your server admins. Otherwise, use the Fair Play Edition

Bug Reports & Feature Requests

Found a bug, errors in calculations, have a suggestion? Please report it my our GitHub Issues page.

Usage

  1. Place an item in the anvil
  2. Select enchantments from the left panel
  3. Click Calculate to find the optimal sequence
  4. Follow the steps shown in the right panel
  5. Navigate through steps using arrow buttons

Screenshot

Technical Algorithm Overview

Optimization Algorithm

The Enchantment Calculator uses a sophisticated tree-based optimization algorithm to find the most cost-effective enchanting sequence.

Core Algorithm Steps:

1. **Tree Structure Generation

For n enchantments, generate all possible binary combination trees

  • Each leaf = enchantment book or base item
  • Each internal node = anvil combination operation
  • Tree depth determines maximum prior work penalty

2. **Cost Calculation Model

The mod calculates costs using Minecraft's exact anvil mechanics:

Total Cost = Enchantment Cost + Prior Work Penalty

Where:

  • Enchantment Cost: Based on enchantment rarity weights
  • Prior Work Penalty: MULTIPLIERS[left_uses] + MULTIPLIERS[right_uses]
  • Multipliers: [1023]

3. **Tree Pruning Optimization

Instead of testing all possible trees, the algorithm:

  • Groups trees by maximum depth (anvil use count)
  • Calculates weighted contribution sums for each tree
  • Keeps only the best tree per depth level
  • Reduces complexity from O(n!) to O(n²)

4. **Item Placement Optimization

For each tree structure:

  1. Sort enchantment books by cost (expensive first)
  2. Calculate leaf contribution values for each position
  3. Place expensive items at positions with lowest contributions
  4. Minimize total weighted cost

5. **Multi-Mode Optimization

Supports two optimization targets:

  • Level Mode: Minimizes total anvil level cost
  • Experience Mode: Minimizes total XP expenditure

Mathematical Foundation

Prior Work Penalty Calculation:

penalty = MULTIPLIERS[left_item_uses] + MULTIPLIERS[right_item_uses]

Experience Cost Conversion:

if (levels ≤ 16): xp = levels² + 6×levels
if (levels ≤ 31): xp = 2.5×levels² - 40.5×levels + 360
if (levels > 31): xp = 4.5×levels² - 162.5×levels + 2220

Tree Contribution Weighting:

For each tree position i:
contribution[i] = depth_from_root
weighted_sum = Σ(i × contribution[i])

Algorithm Complexity

  • Time Complexity: O(n² × 2^n) where n = number of enchantments
  • Space Complexity: O(n × 2^n) for tree storage
  • Practical Performance:

Written by FanyaOff. Read it with pictures on Modrinth.

How to install Enchantment Calculator

  1. This mod runs only on your own game. Servers do not need it, so you can use it on any server.

  2. Install Fabric for Minecraft 1.21 – 26.x.

  3. Download the .jar file from Modrinth and put it in the mods folder of your .minecraft directory.

  4. Start Minecraft with the Fabric profile.

  5. Easier: in Prism Launcher or the Modrinth App, search for Enchantment Calculator in your instance's mods and click Install. It adds the loader and the mods it needs for you.

Full guide: How to install Minecraft mods

Compatibility

Minecraft versions
26.x, 1.21
Runs on
Fabric
Where it runs
Client only (your game)
Edition
Java
Needs
Nothing else
License
MIT
Price
Free
Upkeep
Actively updated (Nov 13, 2026)

Enchantment Calculator compared with similar ones Compare all alternatives

ResourceDownloadsVersionsLast updatePrice
Enchantment Calculatorthe one you looked at871.21 – 26.x2 days agoFree
Yet Another Loot Beams ModderexXD6426.xOct 11, 2026Free
Enchantment Glow Itemsj4nn1k4926.x7 days agoFree
Trade Findernomad_dev701.21 – 26.x12 days agoFree

Questions

Does Enchantment Calculator work on Minecraft 26.x?

Yes. Enchantment Calculator supports Minecraft 26.x. All supported versions: 26.x, 1.21.

Is Enchantment Calculator free?

Yes. Enchantment Calculator is free to download from Modrinth.

Is Enchantment Calculator client-side or server-side?

Client-side. Enchantment Calculator goes in your own mods folder and works on any server, including servers without mods.

Is Enchantment Calculator still updated?

Yes. The last update came out in the past day.

What are the best alternatives to Enchantment Calculator?

The closest ones are Yet Another Loot Beams Mod, Enchantment Glow Items and Trade Finder. Compare all alternatives

Alternatives to Enchantment Calculator

Yet Another Loot Beams ModMods · 26.x

Fork of a fork of the original lootbeams mod. This client side mod highlights dropped items and loot with cool customizable beams! No more losing items or…

Free64 downloads
Compare all alternatives ›

Reviews

–★★★★★
0 reviews
50
40
30
20
10

Log in to leave a review.