Hired Traders

Provides villagers that will sell up to nine kinds of items at the price configured by their employer, get their stock from their employer, and give them the money they earn.

Requirements

Contents

Items:

item loot table
contract Summon Hired Trader hired_traders:contract
clipboard Clipboard hired_traders:clipboard

Advancements:

title description
Reasonable Hiring Practices hire an employee
Grand Opening restock an employee's trade
Inventory Management destock employee's trade

Usage

Summon Hired Trader

Use this to summon a hired trader.

Clipboard

Hold this while updating a hired trader to obtain a full inventory of their stock.

Configuring Trades

Hired traders are configured by setting the inventory of the barrel under them as follows:

buy1 buy1 buy1 buy1 buy1 buy1 buy1 buy1 buy1 buy2 buy2 buy2 buy2 buy2 buy2 buy2 buy2 buy2 sell sell sell sell sell sell sell sell sell

Every column is a trade: first and second item are the stacks bought by the trader (one can be empty) and third column is the stack sold by the trader for those items.

The trader will update their trades to reflect this when their employer crouches in front of them. At this point, several things will happen:

Overhead

Updates every tick:

Uses an advancement to check if a player traded with a hired trader