ModsFinder
AS

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.

ForgeServer-side onlyMIT License1.20.1

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

  1. Enchantment reroll

    Enchanted items from natural loot tables are rerolled whenever a rolled enchantment appears on the banned list.

  2. 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.

  3. Reroll limit

    Each item is rerolled at most 100 times, which prevents an infinite loop when every possible roll is banned.

  4. Mixin hooks

    Two mixins adjust the return values of the enchant-randomly and enchant-with-levels loot functions, which lets the reroll reach both.

  5. 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.

1.20.11.0.0
ReleaseBetaAlphaNot available

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?

No. It runs on the server alone, so players need nothing extra to join.

How are enchantments named in the config?

Each banned enchantment is written by its description ID, for example enchantment.minecraft.sharpness. The language files of the mod that adds the enchantment show its ID.

Does the reroll slow down the server?

The mod keeps a fixed limit of 100 rerolls per item to avoid infinite loops. The author notes that ordinary use is unlikely to produce any noticeable hitching.

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…
datanon, on the Modrinth page

Official listing

Owner
datanon
Published
2025-02-19
Updated on Modrinth
2025-02-19
Facts verified
2026-10-15

Tags