Random Enchanted Book

Adds a variety of Random Enchanted Books. Open one to get an enchanted book with a random enchantment.

Random Enchanted Book

Find a mystery book in a loot chest and see what’s inside. Random Enchanted Book adds books in multiple rarities, each with its own enchantment pool. Open one to get a standard Enchanted Book with a randomly selected enchantment and level.

I designed this mod with adventure modpacks in mind. Feel free to include it in yours.

Find books in loot chests

By default, a loot chest has a 30% chance to generate one extra Random Enchanted Book when its loot is first rolled. The book’s rarity is rolled separately. You can adjust both the chest drop chance and the rarity weights.

Random Enchanted Books alongside other chest loot

Open one book or a whole stack

  • Right-click while holding the books to open one.
  • Sneak + right-click to open the whole stack. Each book rolls its own enchantment and level.

Opening a stack of Random Enchanted Books in Minecraft

Preview enchantments in JEI

With JEI installed, press U over a Random Enchanted Book to see its possible enchantments and level ranges. Press R over a standard Enchanted Book with a single enchantment to see which random books can produce it at that level. Just Enough Items (JEI)

JEI’s Possible Enchantments view showing a book’s enchantment pool and level ranges

Configuration

Edit config/random_enchanted_book-common.toml to customize the mod.

  • Enchantment pools. Configure each rarity by enchantment weight, tags, maximum-level range, and allow or deny lists. The default pools use enchantments eligible for random loot and exclude curses.
  • Extra chest loot. Change the drop chance and book rarity weights under [loot.chestBooks]. These weights are independent of the enchantment pools.
  • Optional loot replacement. Enable replaceEnchantedBooks to convert matching enchantments on standard books generated by loot tables. A converted enchantment adds a Random Enchanted Book of the matching rarity. The original book keeps any unmatched enchantments and is removed if every enchantment matches. This feature is off by default. Once enabled, the default replacementChance is 50% per book.

Future Plans

  • Add more types of Random Enchanted Books.
  • Provide a way to create custom Random Enchanted Books.

Random Enchanted Book Team

profile avatar
  • 1
    Followers
  • 3
    Projects
  • 54.7K
    Downloads

More from foolsix6View all