Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/virb3/anvil-calc
Optimal enchantment order calculator for modded Minecraft
https://github.com/virb3/anvil-calc
books calculator custom enchantment minecraft modded optimal optimized order rust wasm
Last synced: 29 days ago
JSON representation
Optimal enchantment order calculator for modded Minecraft
- Host: GitHub
- URL: https://github.com/virb3/anvil-calc
- Owner: ViRb3
- Created: 2023-01-04T22:22:23.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-12T00:12:00.000Z (10 months ago)
- Last Synced: 2024-03-19T10:10:42.030Z (8 months ago)
- Topics: books, calculator, custom, enchantment, minecraft, modded, optimal, optimized, order, rust, wasm
- Language: Rust
- Homepage: https://virb3.github.io/anvil-calc/
- Size: 828 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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:
```bash
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
- https://github.com/kkchengaf/Minecraft-Enchantment-Order-Calculator
- https://github.com/kkchengaf/Minecraft-Enchantment-Order-Java
- https://github.com/iamcal/enchant-order
- https://github.com/aviettran/minecraft-anvil-calc