Random Enchant Fix
by Txni
Random Enchant Fix is a utility for modpack developers that stops the minecraft:enchant with levels loot function from applying unwanted enchantments.
What it does
The mod lets pack authors list enchantments that the minecraft:enchant with levels function must not apply. A built-in default removes placeholder enchantments that a third-party datapack hands out to its custom boss mobs. A server running it needs every connecting player to have it too. Builds exist for Fabric and NeoForge, both for 1.21.1, with fabric-1.21.1-1.0.1 and neoforge-1.21.1-1.0.1 as the latest files from 2025-07-29. Fabric API and TxniLib are required. The mod is released under a custom license and is not open source.
Key features
Blocked enchantments
Enchantments listed in the configuration are skipped by the enchant with levels loot function.
Built-in datapack fix
A default fix removes boss-only placeholder enchantments that a datapack would otherwise hand out.
Loot table repair
Random loot results stay free of enchantments that were never meant to appear in normal play.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 2
Questions
Does Random Enchant Fix need Fabric API?
Does the server need Random Enchant Fix?
In the catalog
Random Enchant Fix is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from Txni
Similar mods
What the author says
This mod allows modpack developers to remove enchantments from being applied with the minecraft:enchant_with_levels function. By default, this applies a fix for the Dungeons and Taverns datapack, removing some placeholder enchantments only meant to be applied to its custom boss mobs.
Official listing
- Modrinth page
- modrinth.com/mod/random-enchant-fix
- Owner
- Txni
- Published
- 2025-02-28
- Updated on Modrinth
- 2025-07-29
- Facts verified
- 2026-10-15
