Auto Best Enchantments automates the process of breaking and replacing lecterns to refresh librarian villager trades until the enchantments you want appear.
Perfect for players who want rare books faster without manually resetting villagers for hours.
Use this command to set the enchantments you want:
/autolec add [enchantment]? [(min level, max level)/min/max/any] [(min price, max price)/min/max/any]
Mending at the cheapest possible price
/autolec add minecraft:mending max min
Mending at any price
/autolec add minecraft:mending max any
Sharpness V at any price
/autolec add minecraft:sharpness 5 5 any
Any level Unbreaking between 10 and 32 emeralds
/autolec add minecraft:unbreaking any 10 32
All enchantments at max level and minimum price
/autolec add max min
Look directly at the lectern and run:
/autolec start
/autolec stop
If no goals are configured, the mod will keep cycling trades endlessly.
To list all active goals:
/autolec list
For best speed:
This greatly improves cycling speed.
Create a setup where:
/autolec autoTrade (CHEAPEST|ENCHANT|OFF)
CHEAPEST Trades paper first. If unavailable, buys the enchanted book.
ENCHANT Attempts to buy the enchanted book directly.
OFF No automatic trading.
/autolec breakCooldown
Disables Minecraft's normal block break delay.
/autolec log
Shows found trades in chat.
/autolec preBreak
Starts breaking the lectern before trades fully load.
If your tool breaks instantly, keep this disabled or the lectern may break too early.
/autolec preserveTool
Stops automatically before your tool breaks.
/autolec sync item
Waits until the dropped lectern is picked up before placing another one.
Useful when you only have a few lecterns.
You can remove goals in 3 ways:
Use the [REMOVE] button when a goal is completed.
/autolec list
/autolec remove [number]
Best used with:
This makes enchantment hunting extremely efficient.
Less manual villager resetting. More time progressing.