Now with Modded Items & Enchantments support!
FEATURES
| In-Game Panel | Opens from a guide button on the anvil |
| Item & Enchantment Picker | Choose your item type and select exactly which enchantments and levels you want |
| Two Optimization Modes | Optimize for Least XP/Levels or Least Prior Work Penalty, your choice |
| Incompatibility Handling | Mutually exclusive enchants (e.g. Sharpness/Smite/Bane, etc.) are automatically grouped with prev/next cycling so you never select a conflicting combination |
| Inventory Matching | If you already have a matching item in your inventory (correct type, exact enchantments, exact prior work penalty), the frame displays your actual item instead of a generic icon |
| Modded Items | Items sharing the same enchantments are grouped into a single button with a cycling icon |
| Modded Enchantments | Modded enchant names are highlighted in cyan when selected |
HOW TO USE
- Open any Anvil.
- Click the guide button on the left side of the anvil GUI to open the panel.
- Phase 1: Select your item type from the grid. Use the toggle at the bottom to switch between optimization modes.
- Phase 2: Click the level buttons for each enchantment you want, then click Calculate.
- Phase 3: Read the merge tree from top to bottom. Each step tells you exactly which two items to combine and what it will cost.
- Click the back arrow at any phase to go back, or click the guide button again to close the panel.
CONFIGURATION
If you have Mod Menu installed, you can customize your experience:
| Auto-Detect Item | When enabled, placing an item in the anvil's left slot automatically advances the panel to Phase 2 with that item pre-selected | |
| Phase 2 Auto-Fill Mode (for Phase 2) | Max Levels | Automatically selects the maximum level for every applicable enchantment |
| From Inventory | Scans your inventory for enchanted books and pre-selects the highest level found for each enchantment | |
| Allow Incompatible Enchantments (for Phase 2) | When enabled, mutually exclusive enchantments each get their own independent row and can all be selected simultaneously | |
| View Mode (for Phase 3) | Tree View | A pannable merge tree showing every step in the optimal order. Hover any node to see its enchantments, merge cost, prior work penalty, and total cost on the final node |
| List View | A clean scrollable numbered list showing each merge step with its enchantments, cost, and prior work penalty | |
| Show Mod Button in Phase 1 | When enabled, a button appears in Phase 1 to switch between vanilla and modded items | |
| Show Mod Button in Phase 2 | When enabled, a button appears in Phase 2 to show or hide modded enchantments | |
ACKNOWLEDGEMENTS
The enchantment merge optimization logic used in this mod is based on the work found at https://github.com/iamcal/enchant-order. A sincere thank you to the author iamcal for allowing the use of their logic in this mod.
REQUIREMENTS
| Minecraft Version | Fabric Loader | Configuration Library | Fabric API | Mod Menu |
| 1.21.x | 0.18.6+ | Cloth Config API | Varies by Minecraft version | |
| 26.1 - 26.2 | YetAnotherConfigLib | |||
| 26.3 | 0.19.5+ | |||
CLIENT-SIDE ONLY
All functionality is done client-side and is compatible with vanilla servers.
FREE & PUBLIC SOURCE
This is a completely free project. I'm not asking for donations or "buy me a coffee" contributions. If you enjoy the mod, the best way to support it is by:
- Leaving a rating/review
- Sharing it with friends
- Reporting any bugs you find
GALLERY
Phase 1 (with tooltip)

Phase 2 (with selected, unselected, and greyed out enchantments)

Phase 3 (with tooltip, and grey/gold frames)

How to Install Anvil Enchantment Ordering Guide (Mod)
Anvil Enchantment Ordering Guide by armaninyow is verified for Fabric across Minecraft versions 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5 (latest release: 3.2.0, file size: 220 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Anvil Enchantment Ordering Guide file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Added support for Minecraft 26.3
- Updated Fabric Loader to 0.19.5 (required for 26.3)
- Added support for Minecraft 26.2
- Added the ability to click obtained nodes (initial and progress frames) in Phase 3 (for tree view and list view) to send items directly into the anvil slots
- Updated mod button textures
- Added support for Minecraft 26.2
- Added the ability to click obtained nodes (initial and progress frames) in Phase 3 (for tree view and list view) to send items directly into the anvil slots
- Updated mod button textures
- Added support for Minecraft 26.1, 26.1.1, and 26.1.2
- Replaced Cloth Config with YetAnotherConfigLib (YACL) 3.9.3 for the in-game config screen
- Added support for modded items in Phase 1
- Added support for modded enchantments in Phase 2 and 3
- Added settings to toggle the mod button visibility in Phase 1 and Phase 2
- Added support for copper tools, weapons, and armor for phases 2 and 3 (1.21.9+)
- Fixed obtained item frames in Phase 3 to show the actual item name instead of its generic category name
- Split 1.21.5-1.21.11 into two separate version ranges to account for API differences across minor versions
- Merged 1.21.2-1.21.5 into a single version range due to shared rendering API compatibility
- Fixed a crash on 1.21.5 caused by a rendering API that was not available until 1.21.6
- Added support for modded items in Phase 1
- Added support for modded enchantments in Phase 2 and 3
- Added settings to toggle the mod button visibility in Phase 1 and Phase 2
- Added support for copper tools, weapons, and armor for phases 2 and 3 (1.21.9+)
- Fixed obtained item frames in Phase 3 to show the actual item name instead of its generic category name
- Split 1.21.5-1.21.11 into two separate version ranges to account for API differences across minor versions
- Merged 1.21.2-1.21.5 into a single version range due to shared rendering API compatibility
- Fixed a crash on 1.21.5 caused by a rendering API that was not available until 1.21.6
- Added support for modded items in Phase 1
- Added support for modded enchantments in Phase 2 and 3
- Added settings to toggle the mod button visibility in Phase 1 and Phase 2
- Added support for copper tools, weapons, and armor for phases 2 and 3 (1.21.9+)
- Fixed obtained item frames in Phase 3 to show the actual item name instead of its generic category name
- Split 1.21.5-1.21.11 into two separate version ranges to account for API differences across minor versions
- Merged 1.21.2-1.21.5 into a single version range due to shared rendering API compatibility
- Fixed a crash on 1.21.5 caused by a rendering API that was not available until 1.21.6
- Added multi-version support covering Minecraft 1.21.5 through 1.21.11
- Replaced the custom click sound with a built-in Minecraft sound
- Moved Carved Pumpkin to the end of the item grid in Phase 1, next to Book
- Redesigned Phase 2 enchantment rows to occupy a single row each instead of two
- Made enchantment slots clickable to reveal a centered level picker inline
- Added level 0 to the level picker as a way to deselect an enchantment
- Added multi-version support covering Minecraft 1.21.2 through 1.21.4
- Replaced the custom click sound with a built-in Minecraft sound
- Moved Carved Pumpkin to the end of the item grid in Phase 1, next to Book
- Redesigned Phase 2 enchantment rows to occupy a single row each instead of two
- Made enchantment slots clickable to reveal a centered level picker inline
- Added level 0 to the level picker as a way to deselect an enchantment
- Added multi-version support covering Minecraft 1.21 through 1.21.1
- Known limitation: Mouse wheel scrolling is unavailable due to API limitations. The scrollbar remains draggable as an alternative
- Replaced the custom click sound with a built-in Minecraft sound
- Moved Carved Pumpkin to the end of the item grid in Phase 1, next to Book
- Redesigned Phase 2 enchantment rows to occupy a single row each instead of two
- Made enchantment slots clickable to reveal a centered level picker inline
- Added level 0 to the level picker as a way to deselect an enchantment
- Made the mod fully client-side. No longer needs to be installed on the server.
- Added a List View option for Phase 3 in the mod settings, showing merge steps as a scrollable numbered list instead of the draggable tree.
- Fixed the game freezing before the loading screen appeared when clicking Calculate.
- Fixed the result not showing after calculation until the guide button was toggled off and on again.
- Added Auto-detect Item setting: automatically advances to Phase 2 with the correct item pre-selected when an item is placed in the anvil's left slot.
- Added Auto-fill Mode setting: optionally pre-selects enchantment levels in Phase 2, either at maximum level for all applicable enchantments or based on enchanted books found in the player's inventory.
- Added Allow Incompatible Enchantments setting: allows selecting mutually exclusive enchantments simultaneously, giving each its own independent row instead of grouping them with prev/next arrows.
- Added a loading screen for calculations with 10 or more enchantments. Phase 3 opens immediately on clicking Calculate, showing a progress bar and the message "Calculating... Please keep the anvil open." The bar fills based on an estimated duration calibrated from real timing data, capped at 90% until the result arrives.
- Reduced leaf node spacing so frames are packed with exactly 1px between each edge, removing the visual gap between books in the top row.
- Implemented persistent panel state so the tree, selected item, enchantment choices, and scroll position are all restored when the anvil screen is closed and reopened.
- Implemented automatic panel reopening when the anvil screen reinitialises, with the centering shift correctly reapplied.
- Changed curse enchantment names and their selected level numbers to render in red in both Phase 2 and the Phase 3 tooltip, distinguishing them from regular enchantments.
- Fixed the merge tree layout to correctly handle all enchantment combinations, including cases where the optimizer builds the full book tree first and merges the item in near the end.
- Fixed the base item (sword, boots, axe, etc.) always appearing as the leftmost node in the top row regardless of enchantment count or settings.
- Fixed intermediate merge results that feed into the same next step always appearing on the same row, eliminating unnecessarily long vertical connector lines.
- Fixed connector lines crossing over each other by ensuring each pair's books are always placed adjacent in the top row.
- Fixed result nodes overlapping at the bottom of the tree as a consequence of the connector crossing fix.
- Updated to Minecraft 1.21.11.
- Added Spear to Phase 1 item selection, placed between Mace and Trident.
- Added Lunge enchantment (spear-exclusive, max level III).