Wandering Trader

From Minecraft Wiki
Jump to: navigation, search
Wandering Trader
Wandering Trader.png
Health points

20 (Heart.svg × 10)

Spawn

See § Spawning

Drops
Internal ID

?

Entity ID

wandering_trader

Java Edition.pngMclogo.svg
Grass Block.svg
This page contains content on features that may be included in the next update.
These features have appeared in development versions, but the full update containing these features has not been released yet.

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

Spawning[edit]

The wandering trader appears randomly across the world or periodically in village gathering sites, usually near village meeting points, with one to two leashed trader llamas.

At any time, there can be multiple wandering traders in the world.

After 24000 ticks (20 real-life minutes) have passed since the world is created, the game will start to attempt spawning a wandering trader.[note 1] If there are no wandering traders currently in the world, the game tries to spawn a new wandering trader after every following 24000 ticks, within a 48-block radius of a player. The first spawn attempt has a 2.5% chance that one will spawn; if it fails, after another 24000 ticks 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 48000 or 72000 ticks the trader will despawn and reset the cycle, leaving the llamas behind.

In Bedrock Edition, when using spawn eggs or the /summon command to spawn a wandering trader, the llamas will always spawn with it.

Behavior[edit]

The wandering trader has six random trades in Java Edition, or four in Bedrock Edition. 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. They will despawn even if they are named with a name tag or put in a vehicle such as a minecart or boat.

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

In Java Edition, wandering traders will drink a potion of invisibility during dusk. (though hostile mobs will still see and attack them) Once it is dawn, they will drink milk to remove the invisibility.

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

Drops[edit]

When killed, the wandering trader will unleash its trader llama(s). The lead(s) will break and appear at the position of the llama(s).

Wandering traders have a small chance of dropping a bucket of milk or a potion of invisibility if holding either and killed before they can finish drinking. The chances of them dropping either is increased with the Looting enchantment.

Trading[edit]

The trading system is a gameplay mechanic that allows players to trade emeralds for items and vice-versa. Their trades can be considered 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.

In Java Edition 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.

Advancements[edit]

Icon Advancement In-game description Parent Actual requirements (if different) Internal ID
Advancement-plain-raw.pngWhat a Deal!Successfully trade with a VillagerAdventureTake an item from a villager's trading output slot, and put it in your inventory.minecraft:adventure/trade

Data values[edit]

Wandering traders have entity data associated with them that contain various properties of the mob. Their entity ID is wandering_trader.

  • Entity data
    • Tags common to all entities see Template:Nbt inherit/entity/template
    • Tags common to all mobs see Template:Nbt inherit/mob/template
    • Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
    •  DespawnDelay: The number of ticks until this wandering trader is forced to despawn.
    •  WanderTarget: Where this trader will wander towards.
      •  X: The X coordinate to wander towards.
      •  Y: The Y coordinate to wander towards.
      •  Z: The Z coordinate to wander towards.
    •  Offers: Is generated when the trading menu is opened for the first time.
      •  Recipes: List of trade options.
        • A trade option.
          •  rewardExp: 1 or 0 (true/false) - true if this trade will provide XP orb drops. All trades from naturally-generated villagers in Java Edition reward XP orbs.
          •  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.
          •  uses: The number of times this trade has been used. The trade becomes disabled when this is greater or equal to maxUses.
          •  buy: The first 'cost' item, without the Slot tag.
          •  buyB: May not exist. The second 'cost' item, without the Slot tag.
          •  sell: The item being sold for each set of cost items, without the Slot tag.

History[edit]

Upcoming Java Edition
1.14 19w05a Added the wandering trader.
19w06a Wandering traders will now drink invisibility potions at dusk and milk buckets at dawn.
Upcoming Bedrock Edition
1.10 beta 1.10.0.3 Added the wandering trader, which is only available through Experimental Gameplay.

Issues[edit]

Issues relating to "Wandering Trader" are maintained on the bug tracker. Report issues there.

Gallery[edit]

Notes[edit]

  1. If a world is upgraded to Java Edition 1.14 (starting from 19w05a) from a previous version, the timer will start at the time the world was saved. So if the world was last saved at noon in 1.13 and then upgraded to 1.14, the algorithm will try to spawn a wandering trader every day at noon.