gXLg / libr-getter

Allows you to bruteforce a librarian villager for the desired enchantment
MIT License
14 stars 1 forks source link

LibrGetter

logo

A fabric mod which allows you to bruteforce a librarian villager for the desired enchantment.

Installation

GitHub

You can download the mod on the releases page on GitHub.

Modrinth

The mod is also available on Modrinth: Modrinth page

Build

You can build the project yourself, for this just clone the repository and run ./gradlew build. The compiled jar should be under build/libs/.

Usage

Enchantments in the goals list

  1. Add enchantments to the goals list through /librget add <desired enchantment> [desired level] [maximum price in emeralds], where the desired level parameter is optional and defaults to the max level and price parameter is optional and defaults to 64
  2. The goals may be removed through /librget remove <enchantment> <level> or fully cleared using /librget clear
  3. To list all added enchantments use /librget list. The output will contain (remove)-button after each enchantment, which can be clicked.

Customization

Levels

Datapacks/Mods may modify villagers to trade with higher levels of enchantments than what is set in vanilla. You may enter any value in the level argument to add an enchantment with a greater level to the goals list.

Enchantments

By default, LibrGetter only parses enchantments available on the client. If you play on a sever, the list of enchantments may be modified through a server-side plugin to which the client has no access to.

LibrGetter add command has an edge case where you can add custom enchantments in the form of a minecraft id. To use this feature, your enchantment has to be put in double quotes like "enchantmentsolution:sand_veil". Note, that when adding a custom enchantment to the goals list, the level argument is required too.

Currently, the mod can parse enchantments from following plugins:

You can request support for more plugins in the issues. Please make sure to follow the guide to help me.

Warning

Adding custom enchantments or levels exceeding the vanilla maximum sends a warning into the chat by defualt. This warning also includes non-tradable enchantments. You can enable/disable all the warnings with the config option warning.

Start

Manual

  1. Face a librarian and type /librget (client-side command)
  2. Face his lectern and type /librget once again
  3. You can then start by running /librget start

Automatic

/librget auto automatically selects a lectern and a librarian in 4 blocks radius and starts the process. This should only be used when there is only one villager and only one lectern near you, or else the mod could make a wrong selection.

Stop

Stopping a process is as simple as writing /librget stop. After stopping the process you can continue with /librget start.

Config

Localization

LibrGetter supports localization and currently implement the following languages:

You may request further languages in the issues.

Features