promotional bannermobile promotional banner

Enchantment Control

Restricts enchantments from appearing in most sources

Overview

 

This mod is for restricting access to specific enchants from appearing in most places, especially an issue with modded enchants.  A common fix in the past was to outright prevent enchants from registering if they were disabled.  But this could cause desync between client and server if the owner disabled some enchants and post 1.12, configurable registration isn't as easy.  Lets do something about that

 

Summary of obtaining enchants

 

Enchants can show up in several ways:

 

Enchanting table: mods can control this

Enchanting a book at the table: mods can control this

Via a loot table such as fishing or treasure chests: normal items are fine as they use the enchantment to determine application, BUT mods can't prevent enchanted books from having disabled enchants as the game will always apply it regardless.

A possible workaround here is to make a datapack that removes all enchanted books from all loot tables, but that may be impractical for larger packs and it would mean that enchanted books are no longer an option as a reward. Also bad for mod compat because only one mod can override a loot table at a time.

 

Villager trades: Trades cannot be controlled at all outside of the game, even by mods.  The game determines a possible book trade by picking an enchant out of the registry at random, including modded enchants which circumvents the whole point of disabling them.

 

So, what do we do?

 

 That's where this mod comes to the rescue.  This mod doesn't change whether enchants can be applied to an item or not, but rather the last 2 cases of loot tables and villager trades

 

First, there is a loot table blacklist.  Any enchants added to that list will not show up in loot tables via items or enchanted books.

 

Second, anything in the villager trades blacklist will no longer be obtainable by trading.

 

Enchants are specified by their registry name, for example `minecraft:fortune`

 

This mod requires mixin bootstrap until forge ships mixin https://github.com/LXGaming/MixinBootstrap/releases/download/v1.0.1/MixinBootstrap-1.0.1.jar

 

Need a custom mod for a reasonable fee? Just want to chat? Have a complex issue needing additional discussion? Come join the Discord:

 

The Enchantment Control Team

profile avatar
  • 200
    Followers
  • 193
    Projects
  • 304.0M
    Downloads

I'm iitemstack on discord, and that is the only name I use there. If anyone else links to this account as a portfolio, report to moderation and contact me instead as they're a scammer.

More from tfarecnimView all

  • Quickstack project image

    Quickstack

    • 5.7M
    • Mods

    Bringing the quickstack and dropoff found in terraria to mc

    • 5.7M
    • May 13, 2026
    • Mods
  • PS1 Pack Tweaks project image

    PS1 Pack Tweaks

    • 30.8K
    • Mods

    A collection of modifications for the modpack PS1 Edition

    • 30.8K
    • May 11, 2026
    • Mods
  • AE2 Extras project image

    AE2 Extras

    • 9.4M
    • Mods

    Adds some extra stuff to AE2

    • 9.4M
    • May 5, 2026
    • Mods
    • +2
  • Mob Catcher project image

    Mob Catcher

    • 1.7M
    • Mods

    Adds an item to capture mobs with and a launcher to catch them from afar

    • 1.7M
    • May 2, 2026
    • Mods
    • +1
  • Quickstack project image

    Quickstack

    • 5.7M
    • Mods

    Bringing the quickstack and dropoff found in terraria to mc

    • 5.7M
    • May 13, 2026
    • Mods
  • PS1 Pack Tweaks project image

    PS1 Pack Tweaks

    • 30.8K
    • Mods

    A collection of modifications for the modpack PS1 Edition

    • 30.8K
    • May 11, 2026
    • Mods
  • AE2 Extras project image

    AE2 Extras

    • 9.4M
    • Mods

    Adds some extra stuff to AE2

    • 9.4M
    • May 5, 2026
    • Mods
    • +2
  • Mob Catcher project image

    Mob Catcher

    • 1.7M
    • Mods

    Adds an item to capture mobs with and a launcher to catch them from afar

    • 1.7M
    • May 2, 2026
    • Mods
    • +1