Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Librarian Trade Finder

A fabric mod that helps you find the enchantments you need from a Librarian Villager.

Installation

Download the jar from modrinth.

If you are playing on a server using an old minecraft version consider using ViaFabric to use the latest client version.

Or clone the repository and run ./gradlew build. The compiled jar should be under build/libs/.

Usage

  1. Encase the villager in a 1x1 area.
  2. Place down a Lectern in front of the villager.
  3. (Optional) Set Keybindings (Open Config Screen [Default: C], Start/Stop Search [Default: O], Select Lectern [Default: I])
  4. Look at the Lectern and either press keybinding to Select (Default: I) or execute /tradefinder select.
  5. Put enough lecterns in your off-hand and an axe in your main-hand. The faster the axe can break the lectern, the faster the mod will be able to search.
  6. Open Config Screen with the keybinding (Default: C) or execute /tradefinder config.
  7. On the left side, select the enchantments you want to search for, by simply clicking on them. Then enter the maximum price and level you want to search for.
  8. Configure the other settings on the right to your liking.
  9. Either press the Button Start Search, exit the config screen and press the keybinding to start the search (Default: O) or execute /tradefinder start.
  10. If you want to stop the search before you found the enchantment, execute /tradefinder stop or press the keybinding (Default: O).
Usage Demo Video

1.19.4 and below

click to view

Common Steps

  1. Encase the villager in a 1x1 area.
  2. Place down a Lectern in front of the villager.
  3. Look at the Lectern and execute /tradefinder select.
  4. Put enough lecterns in your off-hand and an axe in your main-hand. The faster the axe can break the lectern, the faster the mod will be able to search.

Continuation Single Search

  1. Execute /tradefinder searchSingle <enchantment> <maxPrice> to start searching for you preferred enchantment. As soon as the mod found it, it will stop the search and message you.
  2. If you want to stop the search before you found the enchantment, execute /tradefinder stop.

Continuation List Search

  1. Execute /tradefinder config or open the config gui using modmenu.
  2. Switch to 'List Enchantments' Tab. Then select all the enchantments you want to search for.
  3. Execute /tradefinder searchList to start searching for the list. As soon as the mod found any enchantment you selected, it will stop the search and message you.
  4. If you want to stop the search before you found a enchantment, execute /tradefinder stop.

Demo

Common Issues

  • The error: "You are not looking at a lectern."
    • Make sure you are looking at the lectern and not the villager.
  • The lectern doesn't get broken.
    • Some anti-cheats can prevent breaking the lectern or interacting with the villager if you are not looking at it.
  • My Lecterns are disappearing.
    • Sometimes the lecterns dropped, can get behind the lectern or somewhere else. Stop the mod, break the lectern, and try to find all the items. Then start the search again.

If you have any further issues, create an issue on my github or message me on Discord @greenman999.

External resources



Project members

greeenman999

Owner


Technical information

License
GPL-3.0-only
Client side
required
Server side
unsupported
Project ID