Server Traders

Provides villagers that will sell up to nine kinds of items at the price configured by a server administrator, with no stock limit.

Requirements

Contents

Items

name loot table
Summon Server Trader server_traders:contract

Usage

The server trader should be summoned on top of a barrel, whose contents are used to configure their trades.

By default the hired trader looks like a vanilla villager.

Configuring Trades

Server traders are configured with the same UI as VanillaTweaks Custom Traders.

Each column of the barrel's inventory is used to configure a different trade, first and second row are the price for the items in the third row.

A server trader will only update if a player in creative mode is at a distance of at most four blocks from them.

Differences With Vanilla Tweaks' Custom Traders

I coded this datapack in particular because the Vanilla Tweaks version had issues that irked me a lot, including:

Overhead

Updates when a creative player crouches via #wishlist:crouch: