Wandering Trader: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Removed the videos, they are only for entertainment purposes.)
(23 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{About|the mob in ''[[Minecraft]]''|the entity in ''[[Minecraft Dungeons]]''|Dungeons:Wandering Trader|the entity in ''[[A Minecraft Movie]]''|Movie:Wandering Trader}}{{Infobox entity
{{About|the mob in ''[[Minecraft]]''|the entity in ''[[Minecraft Dungeons]]''|Dungeons:Wandering Trader|the entity in ''[[A Minecraft Movie]]''|Movie:Wandering Trader|the available trades for the wandering trader|Trading#Wandering Trader}}{{Infobox entity
| image = Wandering Trader.png
| image = Wandering Trader.png
| imagesize = x272px
| imagesize = x272px
Line 19: Line 19:
== Spawning ==
== Spawning ==


The wandering trader appears randomly in the [[Overworld]] with 2 [[lead|leash]]ed [[trader llama]]s. They typically spawn within a 48-block radius of a [[player]]. {{IN|bedrock}}, they also try to spawn by a claimed [[bell]] in a [[village]].
The wandering trader appears randomly in the [[Overworld]] with 2 [[lead|leashed]] [[trader llama]]s. They typically spawn within a 48-block radius of a [[player]]. {{IN|bedrock}}, they also try to spawn by a claimed [[bell]] in a [[village]].


When the world is created (or updated from an older version), a counter is initialized to 24000 [[tick]]s (20 real-life minutes, or 1 Minecraft day). Each minute (1200 ticks), if {{cmd|gamerule doTraderSpawning}} is set to {{cd|true}},{{only|java}} the counter is decreased by 1200. When the counter reaches 0 it is reset to 24000 and, if {{cmd|gamerule doMobSpawning}} is set to {{cd|true}}, an attempt may be made to spawn a wandering trader. The first time<!-- Not "day", since sleeping doesn't affect the 24000-tick counter. --> there is a 25% chance of making the attempt, which increases to 50% the second time and is 75% thereafter until a trader is spawned or no player is found for the attempt.
When the world is created (or updated from an older version), a counter is initialized to 24000 [[tick]]s (20 real-life minutes, or 1 Minecraft day). Each minute (1200 ticks), if {{cmd|gamerule doTraderSpawning}} is set to {{code|true}},{{only|java}} the counter is decreased by 1200. When the counter reaches 0 it is reset to 24000 and, if {{cmd|gamerule doMobSpawning}} is set to {{code|true}}, an attempt may be made to spawn a wandering trader. The first time<!-- Not "day", since sleeping doesn't affect the 24000-tick counter. --> there is a 25% chance of making the attempt, which increases to 50% the second time and is 75% thereafter until a trader is spawned or no player is found for the attempt.


When attempting a spawn, a random player is selected. If no player is found, no trader is spawned but the chance for future attempts is reset to 25%. If a player is found, then 90% of the time the spawn attempt immediately fails.
When attempting a spawn, a random player is selected. If no player is found, no trader is spawned but the chance for future attempts is reset to 25%. If a player is found, then 90% of the time the spawn attempt immediately fails.
Line 27: Line 27:
If there is a [[bell]] within 48 blocks of the player then the nearest such bell is used as the target location.
If there is a [[bell]] within 48 blocks of the player then the nearest such bell is used as the target location.


After either of the above conditions are met: ten attempts are made to find a valid mob spawning location on the uppermost block of a random X/Z position within -48/+47 of the target location on each axis. If spawning the trader succeeds, an additional ten attempts are made for each of two trader llamas to find a position within -4/+3 of the trader.{{verify|edition=bedrock|The prior information from the previous two paragraphs was almost entirely wrong for Java Edition, and has been rewritten. But someone needs to check whether this is all valid for Bedrock too.}} Wandering traders and their llamas can still spawn if the passive [[mob cap]] is full. Depending on the player's position, the wandering trader may spawn in a space underground.
After either of the above conditions are met: ten attempts are made to find a valid mob spawning location on the uppermost block of a random X/Z position within -48/+47 of the target location on each axis. In Java Edition, the game uses the highest Y-level “surface” block for these attempts, so the wandering trader will not spawn inside enclosed caves. If spawning the trader succeeds, an additional ten attempts are made for each of two trader llamas to find a position within -4/+3 of the trader.{{verify|edition=bedrock|The prior information from the previous two paragraphs was almost entirely wrong for Java Edition, and has been rewritten. But someone needs to check whether this is all valid for Bedrock too.}} Wandering traders and their llamas can still spawn if the passive [[mob cap]] is full. Depending on the player's position, the wandering trader may spawn in a space underground.


{{IN|bedrock}}, when using [[spawn egg]]s or the {{cmd|summon}} [[commands|command]] to spawn a wandering trader, llamas always spawn with it. Wandering traders never spawn if {{cmd|mobevent minecraft:wandering_trader_event}} is set to {{cd|false}}.
{{IN|bedrock}}, when using [[spawn egg]]s or the {{cmd|summon}} [[commands|command]] to spawn a wandering trader, llamas always spawn with it. Wandering traders never spawn if {{cmd|mobevent minecraft:wandering_trader_event}} is set to {{code|false}}.


=== Despawning ===
=== Despawning ===
Line 39: Line 39:


== Behavior ==
== Behavior ==
The wandering trader has 6 random [[trading#Wandering trader sales|trades]]. New trades are not unlocked after trading with it.

After spawning, the wandering trader prefers to wander within 16 blocks of the initial spawning target location, even if that player leaves or the bell is removed, if not otherwise reacting to nearby players or mobs.{{verify|edition=bedrock}}
After spawning, the wandering trader prefers to wander within 16 blocks of the initial spawning target location, even if that player leaves or the bell is removed, if not otherwise reacting to nearby players or mobs.{{verify|edition=bedrock}}


Wandering traders drink a [[potion of invisibility]] during dusk and as needed to renew the effect during the night. They also drink [[milk]] if invisible during the day to remove the Invisibility effect.
The wandering trader can sometimes form a caravan, due to wild [[llama]]s that follow the leashed trader llama(s).

Wandering traders drink a [[Potion#potion of invisibility|potion of invisibility]] during dusk and as needed to renew the effect during the night. They also drink [[milk]] if invisible during the day to remove the invisibility effect.


Wandering traders avoid [[zombie]]s and their variants ([[zombie villager]]s, [[husk]]s, [[drowned]], [[zombified piglin]]s, [[zoglin]]s), all [[illager]] variants, [[ravager]]s, and [[vex]]es, staying at least 8 [[block]]s away. Unlike other [[villager]]s, a wandering trader killed by zombies does not become a [[zombie villager]].<ref>{{bug|MC-143747|resolution=Won't Fix}}</ref>
Wandering traders avoid [[zombie]]s and their variants ([[zombie villager]]s, [[husk]]s, [[drowned]], [[zombified piglin]]s, [[zoglin]]s), all [[illager]] variants, [[ravager]]s, and [[vex]]es, staying at least 8 [[block]]s away. Unlike other [[villager]]s, a wandering trader killed by zombies does not become a [[zombie villager]].<ref>{{bug|MC-143747|resolution=Won't Fix}}</ref>
Line 52: Line 48:


When attacked by a [[player]], a wandering trader flees from the player as a [[villager]] would do. The [[llama]]s, however, attack the player by spitting if their master gets hit, except in [[Difficulty|Peaceful]]. The llamas stop attacking if the player is killed and respawns, if the llamas are leashed after the wandering trader is killed, or if the player gets far enough away from them for a short period of time.
When attacked by a [[player]], a wandering trader flees from the player as a [[villager]] would do. The [[llama]]s, however, attack the player by spitting if their master gets hit, except in [[Difficulty|Peaceful]]. The llamas stop attacking if the player is killed and respawns, if the llamas are leashed after the wandering trader is killed, or if the player gets far enough away from them for a short period of time.

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


Despite their similarities to villagers, attacking or killing wandering traders does not anger [[Iron Golem|iron golems]].<ref>{{bug|MC-153693|||WAI}}</ref>
Despite their similarities to villagers, attacking or killing wandering traders does not anger [[Iron Golem|iron golems]].<ref>{{bug|MC-153693|||WAI}}</ref>
Line 61: Line 59:
{{for|the available trades for the wandering trader|Trading#Wandering trader}}
{{for|the available trades for the wandering trader|Trading#Wandering trader}}


The trading system is a [[gameplay]] mechanic that allows [[player]]s to buy [[item]]s with [[emerald]]s, but from a wandering trader this time.
The trading system is a [[gameplay]] mechanic that allows [[player]]s to buy and sell [[item]]s, but from a wandering trader this time.


Pressing the {{control|use}} control on the wandering trader allows a player to view the items offered for sale, similar to a villager. Different offers are visible in a list, and clicking on one of the offers moves the corresponding items to the slots above the player's [[inventory]]. All offers involve [[emerald]]s as a currency.
Pressing the {{control|use}} control on the wandering trader allows a player to view the different trade offers, similar to a villager. Different offers are visible in a list, and clicking on one of the offers moves the corresponding items to the slots above the player's [[inventory]]. All offers involve [[emerald]]s as a currency.


Wandering traders typically sell items generated in the world or otherwise related to nature, such as [[plant]]s, [[dye]]s, and [[buckets of fish]]. They can also trade less common items, such as [[coral block]]s, [[blue ice]], or [[nautilus shell]]s. Overall, trades offered by wandering traders offer a way to obtain biome-specific materials, without having to travel to the specific biomes.
Wandering traders typically sell items generated in the world or otherwise related to nature, such as [[plant]]s, [[dye]]s, and [[buckets of fish]]. They can also trade less common items, such as [[coral block]]s, [[blue ice]], or [[nautilus shell]]s. Overall, trades offered by wandering traders offer a way to obtain biome-specific materials, without having to travel to the specific biomes. They will also buy a select few items from the player, giving emeralds in return.


After the [[player]] purchases the same item several times, the wandering trader locks the trade, but unlike villagers, never unlocks the trade. The wandering trader can appear again around the player with new trades after a while.
After the [[player]] uses the same trade several times, the wandering trader locks the trade, but unlike villagers, never unlocks the trade. The wandering trader can appear again around the player with new trades after a while.


Wandering traders do not have the novice-master trading system like villagers. Instead, the player can buy anything from the wandering trader without the need of unlocking the previous trades.
Wandering traders do not have the novice-master trading system like villagers. Instead, the player can buy anything from the wandering trader without the need of unlocking the previous trades.
Line 73: Line 71:
Wandering traders do not increase the prices of its items being sold if attacked by the player, but does decrease the price if the player has the [[Hero of the Village]] effect.{{only|be|short=1}}
Wandering traders do not increase the prices of its items being sold if attacked by the player, but does decrease the price if the player has the [[Hero of the Village]] effect.{{only|be|short=1}}


Unlike [[villager]]s, wandering traders only sell [[item]]s, they do not buy items. Wandering traders do not have an experience bar and do not modify their offers or prices based on changing demand. This (the trade items or prices) can be changed by the player by editing the corresponding NBT data flag through the use of the {{cmd|data}}{{only|je|short=1}} command.
Unlike [[villager]]s, wandering traders do not have an experience bar and do not modify their offers or prices based on changing demand. This (the trade items or prices) can be changed by the player by editing the corresponding NBT data flag through the use of the {{cmd|data}}{{only|je|short=1}} command.


Wandering traders are the only [[renewable resource|renewable]] source of [[sand]], [[red sand]], [[coral block]]s, and [[Small Dripleaf|small dripleaves]].
Wandering traders are the only [[renewable resource|renewable]] source of [[sand]], [[red sand]], [[coral block]]s, and [[Small Dripleaf|small dripleaves]].


The wandering trader cannot work at a job site block and restock, even summoned with a villager profession or other villager data.
The wandering trader cannot work at a job site block and restock, even when summoned with a villager profession or other villager data.


== Drops ==
== Drops ==
Line 91: Line 89:
Wandering traders do not reward any experience when killed.
Wandering traders do not reward any experience when killed.


In [[Bedrock Edition]], wandering traders reward experience after a successful trade.
{{IN|bedrock}}, wandering traders reward experience after a successful trade.


== Sounds ==
== Sounds ==
Line 360: Line 358:
== Advancements ==
== Advancements ==
{{Load advancements|What a Deal;Star Trader;Take Aim;Arbalistic;A Throwaway Joke;Adventure;Over-Overkill}}
{{Load advancements|What a Deal;Star Trader;Take Aim;Arbalistic;A Throwaway Joke;Adventure;Over-Overkill}}

== Video ==
{{yt|XeaNh-bFnYM}}


== History ==
== History ==
Line 379: Line 374:
|{{HistoryLine||1.21.2|exp=Winter Drop|dev=24w40a|Wandering traders can sell [[pale oak sapling]].}}
|{{HistoryLine||1.21.2|exp=Winter Drop|dev=24w40a|Wandering traders can sell [[pale oak sapling]].}}
|{{HistoryLine||1.21.4|dev=24w44a|Wandering traders can sell [[open eyeblossom]], [[pale moss]], and [[pale hanging moss]].}}
|{{HistoryLine||1.21.4|dev=24w44a|Wandering traders can sell [[open eyeblossom]], [[pale moss]], and [[pale hanging moss]].}}
|{{HistoryLine||1.21.5|dev=25w07a|The changes to wandering trader trades have been moved from [[Villager Trade Rebalance|experimental features]] and are now available during normal gameplay.}}
|{{HistoryLine|||dev=25w08a|Some of the new trades have changed from a stock of one single trade to a stock of two trades.}}


|{{HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|exp=Experimental Gameplay|[[File:Wandering Trader.png|32px]] Added wandering traders, available only through Experimental Gameplay.}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|exp=Experimental Gameplay|[[File:Wandering Trader.png|32px]] Added wandering traders, available only through Experimental Gameplay.}}
|{{HistoryLine||1.11.0|dev=beta 1.11.0.3|exp=Experimental Gameplay|Wandering traders now drink a [[potion]] of [[invisibility]] during dusk, when [[damage|hurt]] by projectiles or magic attacks, and when avoiding [[illager]]s and [[zombie]]s.
|{{HistoryLine||1.11.0|dev=beta 1.11.0.3|exp=Experimental Gameplay|Wandering traders now drink a [[potion of invisibility]] during dusk, when [[damage|hurt]] by projectiles or magic attacks, and when avoiding [[illager]]s and [[zombie]]s.
|If a [[player]] is holding an [[emerald]], wandering traders now hold [[item]]s they want to [[trading|trade]].
|If a [[player]] is holding an [[emerald]], wandering traders now hold [[item]]s they want to [[trading|trade]].
|The spawning of wandering traders can now be enabled or disabled using the {{cmd|mobevent}} [[commands|command]].}}
|The spawning of wandering traders can now be enabled or disabled using the {{cmd|mobevent}} [[commands|command]].}}
Line 400: Line 397:
|Most existing trades have lower prices and higher amounts in stock.}}
|Most existing trades have lower prices and higher amounts in stock.}}
|{{HistoryLine||1.21.50|dev=Preview 1.21.50.20|Wandering traders can now sell [[pale oak sapling]]s, [[open eyeblossom]]s, [[pale hanging moss]], and [[pale moss]].}}
|{{HistoryLine||1.21.50|dev=Preview 1.21.50.20|Wandering traders can now sell [[pale oak sapling]]s, [[open eyeblossom]]s, [[pale hanging moss]], and [[pale moss]].}}
|{{HistoryLine||1.21.70|dev=Preview 1.21.70.23|The changes to wandering trader trades have been moved from [[Villager Trade Rebalance|experimental features]] and are now available during normal gameplay.}}
|{{HistoryLine|||dev=Preview 1.21.70.25|Wandering traders' buy trades can now be used twice before being locked, instead of just once.}}


|{{HistoryLine|ps4}}|{{HistoryLine||1.91|[[File:Wandering Trader.png|32px]] Added wandering traders.|If a [[player]] is holding an [[emerald]], wandering traders hold [[item]]s they want to [[trading|trade]].}}
|{{HistoryLine|ps4}}
|{{HistoryLine||1.91|[[File:Wandering Trader.png|32px]] Added wandering traders.|If a [[player]] is holding an [[emerald]], wandering traders hold [[item]]s they want to [[trading|trade]].
}}
}}
}}


Line 430: Line 427:
Wandering trader.png|Wandering trader in the windswept hills.
Wandering trader.png|Wandering trader in the windswept hills.
Wanderingtraderandnitwit.png.jpg|A wandering trader next to a nitwit [[villager]].
Wanderingtraderandnitwit.png.jpg|A wandering trader next to a nitwit [[villager]].
</gallery>

=== Mojang screenshots ===
<gallery>
File:MCV_SpringDrop_testing_Feb12_General_1280x720 (8).png|Two villagers near [[sheep]].
File:MCV SpringDrop testing Feb12 DotNet Blog Editorial 1280x720.jpeg|A wandering trader speaking to [[Sunny]].
File:Wandering trader and cartographer in front of sheep.jpeg|[[Wandering trader]] and [[cartographer]] in front of the new sheep variants.
File:Wandering trader with Efe.jpeg|A wandering trader with [[Efe]].
</gallery>
</gallery>


Line 451: Line 440:
File:Caves & Cliffs cover art.png|A Wandering Trader in promotional artwork for the first [[Caves & Cliffs]] update.
File:Caves & Cliffs cover art.png|A Wandering Trader in promotional artwork for the first [[Caves & Cliffs]] update.
File:Makena & Wandering Trader.jpeg|[[Makena]] offering a [[milk bucket]] to a wandering trader.
File:Makena & Wandering Trader.jpeg|[[Makena]] offering a [[milk bucket]] to a wandering trader.
File:Bedrock 1.21.70.23 PatchNotes.png|An isometric wandering trader near [[sheep]].
File:MCV SpringDrop testing Feb12 DotNet Blog Editorial 1280x720.jpeg|A wandering trader speaking to [[Sunny]].
File:Sheep field.jpeg|Wandering trader and [[cartographer]] in front of sheep.
File:Wandering trader with Efe.jpeg|A wandering trader with [[Efe]].
File:Wandering Trader and Llama Animated Pixel Artwork.gif|Animated wandering trader artwork.
File:Wandering Trader and Llama Animated Pixel Artwork.gif|Animated wandering trader artwork.
File:LEGO Wandering Trader.png|[[Lego Minecraft]] figure
File:LEGO Wandering Trader.png|[[Lego Minecraft]] figure
Line 456: Line 449:
File:AMCM Wandering Trader.png|A [[Movie:Wandering Trader|wandering trader]] in ''[[A Minecraft Movie]]''.
File:AMCM Wandering Trader.png|A [[Movie:Wandering Trader|wandering trader]] in ''[[A Minecraft Movie]]''.
File:Minecraft x Merlin concept art 3.jpg|A strange looking wandering trader in concept art for [[Minecraft Adventure]].
File:Minecraft x Merlin concept art 3.jpg|A strange looking wandering trader in concept art for [[Minecraft Adventure]].
File:Latest masterpiece.jpg|A wandering trader in [[Element Animation]]’s "latest masterpiece."
</gallery>
</gallery>



Revision as of 17:10, 27 March 2025

This article is about the mob in Minecraft. For the entity in Minecraft Dungeons, see Dungeons:Wandering Trader. For the entity in A Minecraft Movie, see Movie:Wandering Trader. For the available trades for the wandering trader, see Trading § Wandering Trader.
Wandering Trader
Wandering Trader.png: Infobox image for Wandering Trader the entity in Minecraft
Invicon Wandering Trader Spawn Egg.png: Inventory sprite for Wandering Trader Spawn Egg in Minecraft as shown in-game with description: Wandering Trader Spawn EggInvicon Wandering Trader Spawn Egg BE.png: Inventory sprite for Wandering Trader Spawn Egg BE in Minecraft as shown in-game with description: Wandering Trader Spawn Egg
Health points

20HP♥ × 10

Behavior

Passive

Mob type

NPC[note 1]

Hitbox size

In Java Edition:
Height: 1.95 blocks
Width: 0.6 blocks
In Bedrock Edition:
Height: 1.9 blocks
Width: 0.6 blocks

Speed

0.7

Spawn

See § Spawning

The wandering trader is a passive mob that randomly spawns near the player. It can trade, making natural items more available, less dangerous to obtain, and in some cases, renewable.

Spawning

The wandering trader appears randomly in the Overworld with 2 leashed trader llamas. They typically spawn within a 48-block radius of a player. In Bedrock Edition, they also try to spawn by a claimed bell in a village.

When the world is created (or updated from an older version), a counter is initialized to 24000 ticks (20 real-life minutes, or 1 Minecraft day). Each minute (1200 ticks), if /gamerule doTraderSpawning is set to true,‌[Java Edition only] the counter is decreased by 1200. When the counter reaches 0 it is reset to 24000 and, if /gamerule doMobSpawning is set to true, an attempt may be made to spawn a wandering trader. The first time there is a 25% chance of making the attempt, which increases to 50% the second time and is 75% thereafter until a trader is spawned or no player is found for the attempt.

When attempting a spawn, a random player is selected. If no player is found, no trader is spawned but the chance for future attempts is reset to 25%. If a player is found, then 90% of the time the spawn attempt immediately fails.

If there is a bell within 48 blocks of the player then the nearest such bell is used as the target location.

After either of the above conditions are met: ten attempts are made to find a valid mob spawning location on the uppermost block of a random X/Z position within -48/+47 of the target location on each axis. In Java Edition, the game uses the highest Y-level “surface” block for these attempts, so the wandering trader will not spawn inside enclosed caves. If spawning the trader succeeds, an additional ten attempts are made for each of two trader llamas to find a position within -4/+3 of the trader.[verify for Bedrock Edition] Wandering traders and their llamas can still spawn if the passive mob cap is full. Depending on the player's position, the wandering trader may spawn in a space underground.

In Bedrock Edition, when using spawn eggs or the /summon command to spawn a wandering trader, llamas always spawn with it. Wandering traders never spawn if /mobevent minecraft:wandering_trader_event is set to false.

Despawning

A wandering trader despawns after being loaded for 48000 ticks (40 minutes, or 2 full Minecraft days), although ticks spent with the trading UI open are not counted.[verify for Bedrock Edition] Naming the wandering trader with a name tag and/or placing the wandering trader in a boat/minecart does not prevent it from despawning.[1] This also includes wandering traders as passengers of other mobs in Java Edition, where the wandering trader still despawns if summoned on top of another mob.

When a wandering trader is unloaded, either by moving into unloaded chunks or entering another dimension, its despawn timer freezes.

Wandering traders despawn sooner if all the trades are locked.‌[Bedrock Edition only]

Behavior

After spawning, the wandering trader prefers to wander within 16 blocks of the initial spawning target location, even if that player leaves or the bell is removed, if not otherwise reacting to nearby players or mobs.[verify for Bedrock Edition]

Wandering traders drink a potion of invisibility during dusk and as needed to renew the effect during the night. They also drink milk if invisible during the day to remove the Invisibility effect.

Wandering traders avoid zombies and their variants (zombie villagers, husks, drowned, zombified piglins, zoglins), all illager variants, ravagers, and vexes, staying at least 8 blocks away. Unlike other villagers, a wandering trader killed by zombies does not become a zombie villager.[2]

Wandering traders drink potions of invisibility if hurt by magic attacks or projectiles from hostile mobs (but not players), or when avoiding illagers, vexes, and zombies.‌[BE only]

When attacked by a player, a wandering trader flees from the player as a villager would do. The llamas, however, attack the player by spitting if their master gets hit, except in Peaceful. The llamas stop attacking if the player is killed and respawns, if the llamas are leashed after the wandering trader is killed, or if the player gets far enough away from them for a short period of time.

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

Despite their similarities to villagers, attacking or killing wandering traders does not anger iron golems.[3]

Unlike most other villager-like mobs, wandering traders do not visually sit down when riding objects such as boats and minecarts.[4]

Trading

The trading UI of a wandering trader in Java Edition.
For the available trades for the wandering trader, see Trading § Wandering trader.

The trading system is a gameplay mechanic that allows players to buy and sell items, but from a wandering trader this time.

Pressing the use control on the wandering trader allows a player to view the different trade offers, similar to a villager. Different offers are visible in a list, and clicking on one of the offers moves the corresponding items to the slots above the player's inventory. All offers involve emeralds as a currency.

Wandering traders typically sell items generated in the world or otherwise related to nature, such as plants, dyes, and buckets of fish. They can also trade less common items, such as coral blocks, blue ice, or nautilus shells. Overall, trades offered by wandering traders offer a way to obtain biome-specific materials, without having to travel to the specific biomes. They will also buy a select few items from the player, giving emeralds in return.

After the player uses the same trade several times, the wandering trader locks the trade, but unlike villagers, never unlocks the trade. The wandering trader can appear again around the player with new trades after a while.

Wandering traders do not have the novice-master trading system like villagers. Instead, the player can buy anything from the wandering trader without the need of unlocking the previous trades.

Wandering traders do not increase the prices of its items being sold if attacked by the player, but does decrease the price if the player has the Hero of the Village effect.‌[BE only]

Unlike villagers, wandering traders do not have an experience bar and do not modify their offers or prices based on changing demand. This (the trade items or prices) can be changed by the player by editing the corresponding NBT data flag through the use of the /data[JE only] command.

Wandering traders are the only renewable source of sand, red sand, coral blocks, and small dripleaves.

The wandering trader cannot work at a job site block and restock, even when summoned with a villager profession or other villager data.

Drops

Item Roll Chance Quantity (Roll Chance)
Default Looting I Looting II Looting III
Invicon Milk Bucket.png: Wandering Trader drops Milk Bucket with quantity 1-3Milk Bucket[d 1]8.5%–11.5%1–3 (8.5%)1–4 (9.5%)1–5 (10.5%)1–6 (11.5%)
Invicon Potion of Invisibility.png: Wandering Trader drops Potion of Invisibility with quantity 1Potion of Invisibility[d 2]8.5%–11.5%1 (8.5%)1–2 (9.5%)1–3 (10.5%)1–4 (11.5%)
  1. If killed while holding or before finishing drinking.
  2. If killed while holding or before finishing drinking.

A wandering trader is also a source of leads, as it typically spawns with two leashed trader llamas. These leads break and drop (at the location of the llama) if either trader or llama dies or if they are separated.

Separating mobs upon leads have the connection broken, dropping the leads if they enter boats for example. Unless they enter the same boat at the same time, every lead is always broken if at least one moves into a boat.

Wandering traders do not drop any loot when they despawn.

Wandering traders do not reward any experience when killed.

In Bedrock Edition, wandering traders reward experience after a successful trade.

Sounds

Java Edition:
Wandering traders use the Friendly Creatures sound category for entity-dependent sound events.

[hide]Sounds
SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
​Wandering Trader mumblesFriendly CreaturesRandomlyentity.wandering_trader.ambientsubtitles.entity.wandering_trader.ambient1.00.8-1.216
​Wandering Trader tradesFriendly CreaturesWhile the trade UI on a wandering trader is openentity.wandering_trader.tradesubtitles.entity.wandering_trader.trade1.00.8-1.216
​Wandering Trader diesFriendly CreaturesWhen a wandering trader diesentity.wandering_trader.deathsubtitles.entity.wandering_trader.death1.00.8-1.216
​Wandering Trader hurtsFriendly CreaturesWhen a wandering trader is damagedentity.wandering_trader.hurtsubtitles.entity.wandering_trader.hurt1.00.8-1.216
​Wandering Trader agreesFriendly CreaturesWhen a player successfully trades with a wandering traderentity.wandering_trader.yessubtitles.entity.wandering_trader.yes1.00.8-1.216
​Wandering Trader disagreesFriendly CreaturesWhen a player fails to trade with a wandering trader due to lack of resourcesentity.wandering_trader.nosubtitles.entity.wandering_trader.no1.00.8-1.216
​Wandering Trader drinks milkFriendly CreaturesWhile a wandering trader is drinking milk to become visible during daytimeentity.wandering_trader.drink_milksubtitles.entity.wandering_trader.drink_milk0.50.9-1.016
​Wandering Trader drinks potionFriendly CreaturesWhile a wandering trader is drinking a potion to become invisible during nighttimeentity.wandering_trader.drink_potionsubtitles.entity.wandering_trader.drink_potionvaries [sound 1]0.9-1.016
​Wandering Trader disappearsFriendly CreaturesWhen a wandering trader becomes invisibleentity.wandering_trader.disappearedsubtitles.entity.wandering_trader.disappeared0.80.9-1.116
​Wandering Trader appearsFriendly CreaturesWhen a wandering trader becomes visibleentity.wandering_trader.reappearedsubtitles.entity.wandering_trader.reappeared0.80.9-1.116
  1. The first listed sound is 0.35; the second listed sound is 0.325

Bedrock Edition:

[hide]Sounds
SoundSourceDescriptionResource locationVolumePitch
Friendly CreaturesRandomlymob.wanderingtrader.idle1.00.8-1.2
Friendly CreaturesWhen a wandering trader diesmob.wanderingtrader.death1.00.8-1.2
Friendly CreaturesWhen a wandering trader is damagedmob.wanderingtrader.hurt1.00.8-1.2
Friendly CreaturesWhen a wandering trader becomes invisiblemob.wanderingtrader.disappeared1.00.8-1.2
Friendly CreaturesWhen a wandering trader becomes visiblemob.wanderingtrader.reappeared1.00.8-1.2
Friendly CreaturesWhile a wandering trader is drinking milk to become visible during daytimemob.wanderingtrader.drink_milk1.00.8-1.2
Friendly CreaturesWhen a wandering trader drinks a potion to become invisible during nighttimemob.wanderingtrader.drink_potion0.70.8-1.2
Friendly CreaturesWhile the trade UI on a wandering trader is openmob.wanderingtrader.haggle1.00.8-1.2
Friendly CreaturesWhen a player successfully trades with a wandering tradermob.wanderingtrader.yes1.00.8-1.2
Friendly CreaturesWhen a player fails to trade with a wandering trader due to lack of resourcesmob.wanderingtrader.no1.00.8-1.2

Data values

ID

Java Edition:

NameIdentifier[hide]Translation key
EntitySprite wandering-trader.png: Sprite image for wandering-trader in Minecraft Wandering Traderwandering_traderentity.minecraft.wandering_trader

Bedrock Edition:

NameIdentifierNumeric ID [hide]Translation key
EntitySprite wandering-trader.png: Sprite image for wandering-trader in Minecraft Wandering Traderwandering_trader118entity.wandering_trader.name

Entity data

Wandering traders have entity data associated with them that contains various properties.

Java Edition:

Main article: Entity format
  • [NBT Compound / JSON Object] Entity data
    • Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template[show]
    • Tags common to all entities see Template:Nbt inherit/entity/template[show]
    • Tags common to all mobs see Template:Nbt inherit/mob/template[show]
    • [Int] DespawnDelay: The number of ticks counted down until this wandering trader is forced to despawn. The wandering trader despawns when this value reaches 1.
    • [NBT Compound / JSON Object] Offers: Is generated when the trading menu is opened for the first time.
      • [NBT List / JSON Array] Recipes: List of trade options.
        • [NBT Compound / JSON Object] A trade option.
          • [NBT Compound / JSON Object] buy: The first 'cost' item, without the Slot tag.
          • [NBT Compound / JSON Object] buyB: May not exist. The second 'cost' item, without the Slot tag.
          • [Int] 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.
          • [Byte] 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.
          • [NBT Compound / JSON Object] sell: The item being sold for each set of cost items, without the Slot tag.
          • [Int] uses: The number of times this trade has been used. The trade becomes disabled when this is greater or equal to maxUses.
    • [Int Array] wander_target: The block location that the trader wanders toward.
    • [NBT List / JSON Array] 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.

Bedrock Edition:

See Bedrock Edition level format/Entity format.

Achievements

[hide]
IconAchievementIn-game descriptionActual requirements (if different)Gamerscore earnedTrophy type (PS)
PS4Other
It SpreadsKill a mob next to a catalyst10Bronze
OverkillDeal nine hearts of damage in a single hit.Damage can be dealt to any mob, even those that do not have nine hearts of health overall.30Bronze
Over-OverkillDeal 50 hearts of damage in a single hit using the Mace20Silver
The HagglerAcquire or spend 30 Emeralds by trading with villagers or with wandering trader. [sic]30Silver

Advancements

IconAdvancementIn-game descriptionActual requirements (if different)
A Throwaway JokeThrow a Trident at something.
Note: Throwing away your only weapon is not a good idea.
Hit a mob with a thrown trident.
AdventureAdventure, exploration and combatKill any mob, or be killed by any living entity.
ArbalisticKill five unique mobs with one crossbow shotArmor Stand also counts for this advancement.
This is a hidden advancement, meaning that it can be viewed by the player only after completing it, regardless of if its child advancement(s), if any, have been completed.
Over-OverkillDeal 50 hearts of damage in a single hit using the Mace
Star TraderTrade with a Villager at the build height limitStand on any block that is higher than 318 and trade with a villager or wandering trader.
Take AimShoot something with an ArrowUsing a bow or a crossbow, shoot a mob with an arrow, tipped arrow, or spectral arrow.
What a Deal!Successfully trade with a VillagerTake an item from a villager or wandering trader's trading output slot.

History

[hide]Java Edition
1.1419w05a Added wandering traders.
19w06aWandering traders now drink invisibility potions at dusk and milk buckets at dawn.
19w09aAdded two new sounds for wandering traders when they drink invisibility potions and milk.
1.15.2Pre-Release 1The spawning of wandering traders can now be controlled using /gamerule doTraderSpawning.
1.1721w05aWandering traders can sell small dripleaf.
21w13aWandering traders can sell pointed dripstone, rooted dirt and moss block.
1.1922w15aWandering traders can sell mangrove propagules.
1.19.4
Experiment
Update 1.20
23w07aWandering traders can sell cherry saplings.
1.20.2
Experiment
Villager Trade Rebalance
23w31aWandering traders now sell more items, and buy certain items from the player.
Most existing trades have lower prices and higher amounts in stock.
1.21.2
Experiment
Winter Drop
24w40aWandering traders can sell pale oak sapling.
1.21.424w44aWandering traders can sell open eyeblossom, pale moss, and pale hanging moss.
1.21.525w07aThe changes to wandering trader trades have been moved from experimental features and are now available during normal gameplay.
25w08aSome of the new trades have changed from a stock of one single trade to a stock of two trades.
[hide]Bedrock Edition
1.10.0
Experiment
Experimental Gameplay
beta 1.10.0.3 Added wandering traders, available only through Experimental Gameplay.
1.11.0
Experiment
Experimental Gameplay
beta 1.11.0.3Wandering traders now drink a potion of invisibility during dusk, when hurt by projectiles or magic attacks, and when avoiding illagers and zombies.
If a player is holding an emerald, wandering traders now hold items they want to trade.
The spawning of wandering traders can now be enabled or disabled using the /mobevent command.
1.11.0beta 1.11.0.4Wandering traders have been fully implemented and are now separate from Experimental Gameplay.
Wandering traders now disappear faster after all trades are disabled.
Wandering traders now have 6 random trades, instead of 4.
1.12.0beta 1.12.0.2Wandering traders now have sounds.
1.17.0beta 1.16.230.54Wandering traders can sell small dripleaf, pointed dripstone, rooted dirt and moss block.
1.19.0Preview 1.19.0.21Can no longer open or close doors.
Now randomly moves around.
Changed drinking sound to match Java Edition.
Added new sound effects for gaining and losing invisibility.
Can now be named with a name tag, but this does not stop them from despawning.
Preview 1.19.0.25Wandering traders can sell mangrove propagules.
1.19.10Preview 1.19.10.21Wandering traders now drink milk at dawn.
1.19.20Preview 1.19.20.20Wandering traders no longer spawn underground.
1.20.30Preview 1.20.20.20Wandering traders can now sell 1 cherry sapling for 5 emeralds.
Wandering traders can no longer sell wheat seeds, beetroot seeds, pumpkin seeds and melon seeds.
Preview 1.20.20.21Wandering traders now sell blue, black, brown or white dyes instead of lapis lazuli, ink sacs, cocoa beans and bone meal.
1.20.30
Experiment
Villager Trade Rebalancing
Preview 1.20.30.20Wandering traders now sell more items, and buy certain items from the player.
Most existing trades have lower prices and higher amounts in stock.
1.21.50Preview 1.21.50.20Wandering traders can now sell pale oak saplings, open eyeblossoms, pale hanging moss, and pale moss.
1.21.70Preview 1.21.70.23The changes to wandering trader trades have been moved from experimental features and are now available during normal gameplay.
Preview 1.21.70.25Wandering traders' buy trades can now be used twice before being locked, instead of just once.
[hide]PlayStation 4 Edition
1.91 Added wandering traders.
If a player is holding an emerald, wandering traders hold items they want to trade.

Issues

Issues relating to "Wandering Trader" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia

  • The wandering trader was inspired by traveling merchants from various RPGs, specifically ones that appeared to provide players with healing items in dangerous places.[5]
  • Wandering traders display their held items differently than most creatures do, using the "ground" parameter instead of the usual hand parameter in model display settings.

Gallery

Screenshots

Textures

In other media

Notes

  1. Categorized as an NPC in the game code.

See also

References

  1. MC-143982 — Named wandering traders despawn — resolved as "Works As Intended".
  2. MC-143747 — resolved as "Won't Fix".
  3. MC-153693 — resolved as "Works As Intended".
  4. MC-161106 — resolved as "Works As Intended".
  5. "Meet the Wandering Trader" by Per Landin – Minecraft.net, March 22, 2019.

External links

Navigation