VillagerTradeEditor

VillagerTradeEditor

Villager Trade Editor is a server-side Fabric mod that lets server operators edit trades of ordinary villagers.

85 downloads
0 followers

Villager Trade Editor

Villager Trade Editor is a server-side Fabric mod that lets server operators edit trades of ordinary villagers.

Players do not need to install this mod. It only has to be installed on the server.

Features

  • Sneak + right-click an ordinary villager to select it
  • Add, replace, remove, list, and clear villager trades
  • Create trades from hotbar slots
  • Restrict trade editing to server operators only
  • Add global timed trade limits
  • Timed limits use Minecraft in-game time, so sleeping advances timers

Requirements

  • Minecraft 1.21.10
  • Fabric Loader
  • Fabric API
  • Java 21

How to select a villager

Sneak + right-click an ordinary villager.

Only players with command permission level 2 or higher can select villagers and use the commands. By default, this means server operators only.

Creating a trade

The mod creates trades from your hotbar:

  • Hotbar slot 1: first cost
  • Hotbar slot 2: optional second cost
  • Hotbar slot 3: result item

Example:

If you want a villager to sell an enchanted diamond sword for 25 emeralds:

  1. Put 25 emeralds in hotbar slot 1.
  2. Leave hotbar slot 2 empty.
  3. Put the enchanted diamond sword in hotbar slot 3.
  4. Sneak + right-click the villager.
  5. Run:
/vtrade add

Commands

/vtrade help

Shows the help message.

/vtrade list

Lists all trades of the selected villager.

/vtrade add

Adds a new trade to the selected villager using items from hotbar slots 1, 2, and 3.

/vtrade replace <number>

Replaces an existing trade with a new one using items from hotbar slots 1, 2, and 3.

Example:

/vtrade replace 2

Replaces trade number 2.

/vtrade remove <number>

Removes one trade from the selected villager.

Example:

/vtrade remove 3

Removes trade number 3.

/vtrade clear

Removes all trades from the selected villager.