Enchantment Control

Quick rating

Community listing page, reviews here may not be monitored by the author.

Enchantment Control

No reviews yet

Restricts enchantments from appearing in most sources

No Theme
No Genre
Enchantments
QoL & Tweaks
Mod Loaders
Forge
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
enchantmentcontrol-1.2c.jar

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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:

discordicon.png

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~2,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works