Villager Trades

Villager Trades

Datapack-driven NeoForge mod for replacing villager profession and wandering trader trades with custom JSON-defined trades.

by
5 Downloads
neoforgeadventuregame-mechanicsutility
Rent Server with this Mod

Screenshots

Wandering Villager Custom Trade
Mod Features
Toolsmith Villager Custom Trade

About this Mod

Villager Trades

Villager Trades is a lightweight NeoForge mod for Minecraft 1.21.1 that lets modpack makers and server owners define villager trades through datapacks.

Instead of hardcoding trade changes in Java or editing the mod itself, trades are controlled with JSON files. Each villager profession has its own file, and wandering trader trades are handled separately.

Features

  • Add custom trades through datapacks
  • Configure trades per villager profession
  • Configure wandering trader trades
  • Replace vanilla trades only when a matching datapack file exists
  • Leave vanilla trades unchanged when no datapack file is present
  • Enable or disable the mod's trade functionality through a simple config option
  • Works on both dedicated servers and singleplayer worlds

How It Works

Datapack trade files are placed under:

data/villagertrades/trades/

Supported profession files:

  • farmer.json
  • fisherman.json
  • shepherd.json
  • fletcher.json
  • cleric.json
  • weaponsmith.json
  • armorer.json
  • toolsmith.json
  • librarian.json
  • cartographer.json
  • leatherworker.json
  • butcher.json
  • mason.json
  • nitwit.json
  • wandering.json

If a valid profession file exists, that profession's vanilla trades are removed and replaced with the trades from the JSON file.

If no file exists for a profession, that profession keeps its vanilla trades.

Wandering Trader

Wandering trader trades are configured with:

wandering.json

Entries can use:

  • "pool": "generic"
  • "pool": "rare"

If no pool is specified, the trade is added to the generic pool.

When wandering.json exists, vanilla wandering trader trades are replaced by the JSON-defined trades.

Config

The mod generates a common config file:

config/villagertrades-common.toml

The config contains:

enabled = true

When set to false, the mod does not change villager or wandering trader trades.

Example Trade

{
"trades": [
{
"level": 1,
"buy": { "item": "minecraft:emerald", "count": 1 },
"sell": { "item": "minecraft:diamond", "count": 1 },
"max_uses": 16,
"xp": 2,
"price_multiplier": 0.05
}
]
}

Notes

  • Villager trades use levels from 1 to 5
  • Minecraft datapack resource paths must be lowercase
  • Trade files can contain either a JSON array or an object with a trades array
  • This mod is intended for datapack-driven customization, modpacks, and server-side trade balancing

Available Versions

Villager Trades 1.0.0release
MC 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11neoforge
June 28, 2026

How to Install Villager Trades on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set neoforge Loader

In the panel under "Egg", select the neoforge loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "Villager Trades". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

neoforge

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+8 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Villager Trades server crashes on startup – what to do?

Most common cause: wrong neoforge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is Villager Trades compatible with neoforge?

Villager Trades officially supports neoforge for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Villager Trades – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Villager Trades consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Villager Trades with just one click on your server.

Recommended RAM
4 GBfrom €8/mo
Minimum 3 GB | per 8 players
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
LicenseRef-All-Rights-Reserved
Server-side
Required

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.2+1 more