Wandering Trader

The wandering trader is a mob similar to a villager found randomly across the world.

Spawning
The wandering trader appears randomly across the world or periodically in village gathering sites, with two trader llamas.

Only one wandering trader will spawn at any given time after one Minecraft day. They will spawn within a 48-block radius of a player. Initially, there will be a spawn attempt made with a 2.5% chance that one will spawn; if it fails, after another in-game day another spawn attempt will be made with a 5% chance of success. If that fails, for all subsequent spawn attempts the chance will cap at 7.5%. After 2 or 3 in-game days the trader along with its llamas will despawn and reset the cycle.

$$, the llamas are part of the wandering trader. When using spawn eggs or the command to spawn a wandering trader, the llamas will always spawn with it.

Behavior
The wandering trader has six random trades $$, or four $$. New trades are not unlocked after trading with it.

After spawning, the wandering trader will have a managed schedule for 40–60 minutes. After the time expires, the wandering trader will despawn.

The wandering trader can sometimes form a caravan, due to wild llamas that follow the leashed trader llama.

Wandering traders will avoid zombies and their variants, all illager variants, and vexes, staying at least 8 blocks away.

Wandering traders will still despawn even if named with a name tag.

Drops
When killed, the wandering trader will unleash its trader llamas and drop 2 leashes at the position of each of the trader llamas.

Trading
The trading system is a gameplay mechanic that allows players to trade emeralds for items and vice-versa. Their trades can be good or bad, depending on what the cost is and what items the player might get.

Right-clicking a wandering trader will allow a player to trade with them. Different offers may be viewed by pressing the left and right buttons next to the currently displayed offer. All offers involve emerald as a currency. Trading allows the acquisition of rare items that would otherwise be fairly difficult to obtain, such as coral or blue ice.

After 2–12 times an offer is repeated, the wandering trader will lock the trade offer, and the wandering trader will no longer offer this trade permanently.

Unlike villagers, wandering traders only offer the player "sell" trades, which means the player can only use emeralds in exchange for an item. Players cannot exchange items for emeralds.

Data values
Wandering Traders have entity data associated with them that contain various properties of the mob. Their entity ID is.

Gallery
Fahrender Händler 떠돌이 행상