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 with 2 trader llamas. In the Bedrock Edition, they are leashed to the trader.

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 minute 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 days the trader along with its llamas will despawn and reset the cycle.

Behavior
The wandering trader has six random trades. 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 start to despawn if the player is further than 24 blocks away from it.

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

Like villagers, wandering traders can open and close doors, and will move indoors at night or during thunderstorms.

Wandering traders will also avoid zombie variants including zombie pigman, illagers, and vexes, staying at least 8 blocks away.

Drops
When killed, the wandering trader will unleash its trader llamas and drop 2 leashes at the position 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. Trading is only available for adult wandering traders.

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. The trading mechanic allows players to get bottle o' enchanting in survival mode.

After 2-12 times an offer is repeated, the wandering trader will lock the trade offer. That is, the wandering trader will no longer offer this trade.

Commands or external editors can be used to give custom trades to wandering traders.

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

Issues
Fahrender Händler