
Automatically cycles librarian villager trades for you.

This mod basically breaks and places lecterns to cycle trades for you.
Add a goal:/autolec add [enchant]? [(minLevel, maxLevel)/min/max/any] [(minPrice, maxPrice)/min/max/any]
Look at a lectern/autolec start
Stop:/autolec stop
If there isn't any goal Auto Lectern will cycle forever.
If you wish to make Auto Lectern wait for the lectern item to be picked up first,
do /autolec sync item
You may add a goal using the command /autolec add which has the following syntax:/autolec add [enchant]? (([min_level] [max_level])|min|max|any) (([min_price] [max_price])|min|max|any)
Here's an example of adding mending at lowest price:/autolec add minecraft:mending max min
Here's an example of adding mending at any price:/autolec add minecraft:mending max any
Here's an example to add Sharpness V at any price:/autolec add minecraft:sharpness 5 5 any
Here's an example to add Unbreaking of any level at the price of between 10-32 emeralds:/autolec add minecraft:unbreaking any 10 32
Here's an example to add ALL enchantments at max level and minimum price./autolec add max min
You may want to know which goals you have already added.
You may do this using the /autolec list command.
Here's an example of a suitable cycling area:
For faster cycling speed, prepare many lecterns and put them in your offhand while putting the axe in your main hand.
/autolec autoTrade (CHEAPEST|ENCHANT|OFF)/autolec breakCooldown/autolec log/autolec preBreak/autolec preserveTool/autolec sync itemYou may start cycling by LOOKING AT THE LECTERN and run the following command: /autolec start
After you got your enchant, you may remove your goal by:
Goal met:/autolec list/autolec remove [index] where [index] is obtained from the number on the left in /autolec list