Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.68 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.68 KB

anvil-calc

Optimal enchantment order calculator for modded Minecraft

Features

  • Minimalistic, text-based UI, optimized for fast typing
  • Up to 15 items/books
  • Custom prior work penalty
  • User-defined enchantments
  • Optimize for XP rather than levels
  • Free books mode (Apotheosis)

Usage

Web version (recommended)

Just head over to https://virb3.github.io/anvil-calc/.

Binary version

You'll need to compile the program using Rust:

cargo build --release

Then, simply run it from target/release/anvil-calc. Make sure config.yml is in the current working directory and customized with your enchantments. The binary is roughly 2x faster than the web version, but this is usually insignificant.

Screenshot

Technical details

This tool is an extremely optimized bruteforcer written in Rust and compiled for WebAssembly. It is completely client-side and no server is required.

There are multiple heuristics in the code, which allows certain sub-optimal paths to be skipped. The most significant speedup is achieved by caching all input and output items, which allows not only repeated calculations to be avoided, but also sub-optimal ones to be completely skipped.

Reference: https://minecraft.fandom.com/wiki/Anvil_mechanics

Similar