Remove the enchanted book level limits in survival
This mod requires Fabric API and Architectury API.
Limitless Enchantments is a mod that lets you mess with enchantments all you want. Only 1.21+ is supported.
This mod bumps enchantment level cap to 2,147,483,648 from 255.
Settings are managed with the /limitless [SETTING] command. Available options are:
maxEnchantmentLevelmaxTradeLevelblacklistrebalancedTradesanvilExperienceCostLimitfixedAnvilCostnoIncompatibilitiesshowActualNumbersIf limitless command is executed without any arguments, it will show mod's version.
maxEnchantmentLevel)limitless maxEnchantmentLevel 255Maximum Enchantment Level is a setting that lets you remove the limit of maximum enchantment levels.
For example; with the setting Maximum Enchantment Level set to 255, any librarian trades with enchanted books' level will be between 1 and 255, ignoring the book's maximum level.
If Maximum Enchantment Level is set to 0, the maximum levels will work normally.
For technical reasons, in creative inventory screen enchanted books will only have up to level 255 even if maxEnchantmentLevel is higher than 255. This does not mean you can't get higher level books than 255 ones.
maxTradeLevel)maxEnchantmentLevel)limitless maxTradeLevel 255Maximum Trade Level is a setting that acts as a limiter for maxEnchantmentLevel in librarian trades.
For example; with the setting Maximum Enchantment Level set to 255 and Maximum Trade Level set to 103, librarians won't trade enchanted books with a higher level than 103. If Maximum Trade Level is set to 0, librarian trades will not be limited. This setting must be lower than Maximum Enchantment Level.
If this setting is set to -1, villagers will not trade books with higher levels than their vanilla maximum levels even if Maximum Enchantment Level is set higher.
blacklist)add, addAll, remove and clearlimitless blacklistWith this setting, you can blacklist certain enchantments to make them not be affected by the maxEnchantmentLevel setting. Executing only limitless blacklist will show the current blacklist of enchantments.
addlimitless blacklist add minecraft:mendingThis subcommand adds an enchantment to blacklist. You can't add enchantments that are already in the blacklist.
addAlllimitless blacklist addAllThis subcommand adds all available enchantments to the blacklist. If something unexpected happens, the changes will be reverted.
removelimitless blacklist remove minecraft:mendingThis subcommand removes an enchantment from the blacklist. You can't remove nonexistent enchantments in the blacklist.
clearlimitless blacklist clearThis subcommand clears all enchantments off the blacklist.
rebalancedTrades)true or falselimitless rebalancedTrades trueWith Rebalanced Trades setting, you can let the mod rebalance Librarian Villager trades. This is recommended if Maximum Enchantment Level is higher than 10.
Without balances:
With balances:
anvilExperienceCostLimit)limitless anvilExperienceCostLimit 255Anvil Experience Cost Limit is a setting that allows you to modify anvil operation experience level cost limit that makes anvils refuse to work. (Too expensive!)

fixedAnvilCost)limitless fixedAnvilCost 20Fixed Anvil Cost is a setting that forces all anvil experience costs to a specified value. If this setting is not set to -1, anvils will always use this value for their cost. However, if the specified value is higher than the Anvil Experience Cost Limit, the anvil will display the “Too Expensive!” message regardless of what you try to do.
noIncompatibilities)true or falselimitless noIncompatibilities trueIf No Incompatibilities setting is turned on, the game will allow you to to combine mutually exclusive enchantments like Infinity and Mending together.
true or falselimitless showActualNumbers falseshowActualNumbers, you can choose to have actual numbers of the level of an enchantment near the roman numerals.