Anon's Enchantment Banner
by datanon
Anon's Enchantment Banner is a Forge world generation mod that rerolls the enchantments on loot pulled from natural loot tables, using a config list of banned enchantments.
What it does
Loot table rolls that produce enchanted gear are adjusted so that any enchantment on the banned list is rerolled, repeating with the same settings until a permitted enchantment comes up or the attempt limit is reached. The config lists enchantments by their description IDs, such as enchantment.minecraft.sharpness, and the ID of any enchantment can be looked up in the language files of the mod that adds it.
The changes apply only on the server, so clients do not need the mod. The files are published for Forge only, for 1.20.1, and the latest build is 1.0.0, released on 2025-02-19 under the MIT License. The mod is not open source. A config entry with a bad value can be removed by the player, and the mod then falls back to its defaults.
Key features
Enchantment reroll
Enchanted items from natural loot tables are rerolled whenever a rolled enchantment appears on the banned list.
Config-driven ban list
The list of banned enchantments is set in the config file by description ID, and each entry is matched against the rolls.
Reroll limit
Each item is rerolled at most 100 times, which prevents an infinite loop when every possible roll is banned.
Mixin hooks
Two mixins adjust the return values of the enchant-randomly and enchant-with-levels loot functions, which lets the reroll reach both.
Log output
An INFO log entry is written whenever a reroll happens, so a server owner can confirm the mod is working.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Removing enchantments from a mod's loot
A server owner who wants a mod's gear to drop without certain enchantments can list them in the config, as was done for Spartan Weaponry.
Who it’s for: Server owners who want to keep certain enchantments out of loot generated in their world, and who are comfortable editing a config file by hand.
Questions
Does Anon's Enchantment Banner need to be installed on the client?
How are enchantments named in the config?
Does the reroll slow down the server?
In the catalog
Anon's Enchantment Banner is one of 8,515 World generation mods on ModsFinder, and one of 5,058 World generation mods for Forge. 34,764 mods support Minecraft 1.20.1.
Similar mods
What the author says
Since nothing like this seems to exist for Forge 1.20.1, I decided to hack something together quickly for personal use, then upload it in case others needed it. Basically, this mod will make it so that if a piece of naturally generated loot uses the enchant_randomly or enchant_with_levels functions, it will reroll…
Official listing
- Modrinth page
- modrinth.com/mod/anons-enchantment-banner
- Owner
- datanon
- Published
- 2025-02-19
- Updated on Modrinth
- 2025-02-19
- Facts verified
- 2026-10-15