Minecraft wiki entry for Wandering_Trader, associated text: Entity data
Additional fields for mobs that can breed[show]
Tags common to all entities[show]
Tags common to all mobs[show]
 DespawnDelay: The number of ticks counted down until this wandering trader is forced to despawn. The wandering trader will despawn when this value reaches 1.
 Offers: Is generated when the trading menu is opened for the first time.
 Recipes: List of trade options.
A trade option.
 buy: The first 'cost' item, without the Slot tag.
Tags common to all items[show]
 buyB: May not exist. The second 'cost' item, without the Slot tag.
Tags common to all items[show]
 maxUses: The maximum number of times this trade can be used before it is disabled. Increases by a random amount from 2 to 12 when offers are refreshed.
 rewardExp: 1 or 0 (true/false) - true if this trade provides XP orb drops. All trades from naturally-generated villagers in Java Edition reward XP orbs.
 sell: The item being sold for each set of cost items, without the Slot tag.
Tags common to all items[show]
 uses: The number of times this trade has been used. The trade becomes disabled when this is greater or equal to maxUses.
 WanderTarget: Destination toward where this trader wanders.
 X: The X coordinate to wander toward.
 Y: The Y coordinate to wander toward.
 Z: The Z coordinate to wander toward.
 Inventory: Each compound tag in this list is an item in the wandering trader's inventory, up to a maximum of 8 slots. Items in two or more slots that can be stacked together are automatically be condensed into one slot. If there are more than 8 slots, the last slot is removed until the total is 8. If there are 9 slots but two previous slots can be condensed, the last slot returns after the two other slots are combined. Wandering traders don't change their inventory automatically or drop items from it upon death. The inventory is currently unused.
An item in the inventory, excluding the Slot tag.
Tags common to all items[show]