Minecraft:Wandering Trader
More actions
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
A wandering trader is a Minecraft:passive mob similar to Minecraft:villagers that sometimes spawns near Minecraft:players, alongside two Minecraft:trader llamas tied to it with Minecraft:leads. It can be Minecraft:traded with, buying commonly available resources and selling Minecraft:items mostly native to specific Minecraft:biomes. Its trades are randomized each time it spawns, and it will despawn after enough time has passed.
Spawning
Wandering traders spawn randomly with two leashed trader llamas in the Minecraft:Overworld near the player, in any biome except in Minecraft:the void biome, controlled by the Template:Cd biome tag Template:In. They typically spawn within a 48-block radius of a player. Template:IN, they also try to spawn by a claimed Minecraft:bell in a Minecraft:village.
When the world is created (or updated from an older version), a counter is initialized to 24000 Minecraft:ticks (20 real-life minutes, or 1 Minecraft day). Each minute (1200 ticks), if Template:Gmr is set to Template:Code,Template:Only the counter is decreased by 1200. When the counter reaches 0 it is reset to 24000 and an attempt may be made to spawn a wandering trader, unless the game rule Template:Gmr is set to Template:Code.
When the counter is equal to 0 or lower for the first time, there is a 25% chance of making the attempt, which increases to 50% the second time and 75% thereafter until a trader is spawned, or no player is found for the attempt, where it will then be reset to 25%. If a player is found, then there is a 10% chance for a wandering trader to spawn. In summary, when the counter is equal to 0 or lower, the total chance that a trader will spawn will be either 2.5%, 5%, or 7.5% depending on the above conditions.
When attempting a spawn, a random player is selected as the target location. If there is a Minecraft:bell within 48 blocks of the player, then the nearest such bell is used as the target location instead. Ten attempts are then made to find a valid mob spawning location. This is made 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 in Java Edition. In Bedrock Edition, the trader always spawns together with its llamas on the same block. Wandering traders and their llamas can still spawn if the passive Minecraft:mob cap is full.
Template:IN, when using Minecraft:spawn eggs or the Template:Cmd Minecraft:command to spawn a wandering trader, llamas always spawn with it. Wandering traders never spawn if Template:Cmd is set to Template:Code.
Despawning
Template:IN, a wandering trader despawns after being loaded for 48000 Minecraft:ticks (40 minutes, or 2 full Minecraft days), although ticks spent with the trading UI open are not counted. Template:IN, a wandering trader despawns after being loaded for either 48000 ticks (2 full Minecraft days) or 72000 ticks (3 full days) and the nearest player is more than 24 blocks away from it. In Bedrock Edition, wandering traders also immediately despawn if all trades are used up and the nearest player is more than 24 blocks away.
Unlike most mobs, naming the wandering trader with a Minecraft:name tag and/or placing it in a Minecraft:boat/Minecraft:minecart does not prevent it from despawning.<ref>Template:Bug</ref> This also includes wandering traders as passengers of other mobs in Java Edition, where it still despawns if summoned on top of another mob.
When a wandering trader is unloaded, either by moving into unloaded Minecraft:chunks or entering another Minecraft:dimension, its despawn timer freezes.
Template:IN, wandering traders spawned via Template:Cmd, Minecraft:spawn eggs or Minecraft:spawners have a default DespawnDelay value of 0, meaning they do not despawn after 48000 ticks.
Behavior
After spawning, the wandering trader prefers to wander within 16 blocks of the initial spawning target location, even if that player leaves, if not otherwise reacting to nearby players or mobs.Template:Verify
Wandering traders drink a Minecraft:potion of Invisibility during dusk and as needed to renew the effect during the night. They also drink Minecraft:milk if invisible during the day to remove the Minecraft:Invisibility effect.
Wandering traders avoid Minecraft:zombies and their variants (Minecraft:zombie villagers, Minecraft:husks, Minecraft:drowned, Minecraft:zombified piglins, Minecraft:zoglins), all Minecraft:illager variants (Minecraft:pillagers, Minecraft:vindicators, Minecraft:evokers, Minecraft:illusionersTemplate:Only), Minecraft:ravagers, and Minecraft:vexes, staying at least 8 Minecraft:blocks away. Unlike Minecraft:villagers, a wandering trader killed by zombies does not become a Minecraft:zombie villager.<ref>Template:Bug</ref> Minecraft:Witches do not attack wandering traders during Minecraft:raids.
Wandering traders drink potions of Invisibility if hurt by magic attacks or projectiles from hostile Minecraft:mobs (but not players), or when avoiding illagers, vexes, and zombies.Template:Only
When attacked by a Minecraft:player, a wandering trader flees from the player as a Minecraft:villager would do. The Minecraft:trader llamas, however, attack the player by spitting if their master gets hit, except in Minecraft: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 Minecraft:llamas that follow the leashed trader llama(s).
Despite their similarities to villagers, attacking or killing wandering traders does not anger Minecraft:iron golems.<ref>Template:Bug</ref>
Like villagers and witches, wandering traders do not visually sit down when riding objects such as Minecraft:boats and Minecraft:minecarts.<ref>Template:Bug</ref>
Template:In, when a player holds an emerald or other item near a wandering trader who wants that item, the wandering trader holds up an item it offers in exchange, similar to Minecraft:vilagers.
Trading
The Minecraft:trading system is a Minecraft:gameplay mechanic that allows Minecraft:players to buy and sell Minecraft:items, in this case from a wandering trader.
Pressing the Template:Control 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 Minecraft:inventory. All offers involve Minecraft:emeralds as a currency.
Wandering traders typically sell items generated in the world or otherwise related to nature, such as Minecraft:plants, Minecraft:dyes, and Minecraft:buckets of fish. They can also trade less common items, such as Minecraft:coral blocks, Minecraft:blue ice, or Minecraft: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 Minecraft: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.
Template:IN, wandering traders show available items once the player holds the required item, similar to Minecraft:villagers.
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 Minecraft:Hero of the Village effect Template:In.
Unlike Minecraft:villagers, wandering traders do not have an experience bar or career levels, 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 Template:CmdTemplate:Only command.
Wandering traders are the only Minecraft:renewable source of Minecraft:sand, Minecraft:red sand, Minecraft:coral blocks, and Minecraft:small dripleaves without glitches.
The wandering trader cannot work at a job site block and restock, even when summoned with a villager profession or other villager data.
Trade offers
The wandering trader offers nine trades in total: it always purchases two random items, sells two special items, and sells five more ordinary items.
These trades in each of these groups are not divided into categories; for example, a single wandering trader can sell 2 different saplings. Each individual trade is equally likely.
In the trading GUI, the trade offers are always listed in this order:
- 2 purchasing trades
- 2 special selling trades
- 5 ordinary selling trades
In Minecraft:Chaos CubedTemplate:Upcoming, wandering traders can sell two Minecraft:sulfur spikes for one emerald, with five trades in stock.
Drops
Wandering traders do not drop any Minecraft:experience when killed.
Template:IN, wandering traders reward experience after a successful trade.
A wandering trader has a 8.5% chance to drop any item it is holding. This chance is increased by 1% per level of Minecraft:looting.
Wandering traders can also be a source of Minecraft:leads, as they spawn with two Minecraft:trader llamas attached with leads.
On death
Sounds
Data values
ID
Template:Edition: Template:ID table
Template:Edition: Template:ID table
Entity data
Wandering traders have entity data associated with them that contains various properties.
<section begin="entity data" />
- Template:Nbt Entity data
- Template:Nbt inherit/breedable
- The Template:Cd tag cannot be set to a negative number, making it impossible for them to be a baby.
- Template:Nbt inherit/entity
- Template:Nbt inherit/mob
- Template:Nbt: The number of ticks counted down until this wandering trader is forced to despawn. The wandering trader despawns when this value reaches 1.
- Template:Nbt: Is generated when the trading menu is opened for the first time.
- Template:Nbt: List of trade options.
- Template:Nbt A trade option.
- Template:Nbt: The first 'cost' item, without the Slot tag.
- Template:Nbt: May not exist. The second 'cost' item, without the Slot tag.
- Template:Nbt: 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.
- Template:Nbt: 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.
- Template:Nbt: The item being sold for each set of cost items, without the Slot tag.
- Template:Nbt: The number of times this trade has been used. The trade becomes disabled when this is greater or equal to maxUses.
- Template:Nbt A trade option.
- Template:Nbt: List of trade options.
- Template:Nbt: The block location that the trader wanders toward.
- Template:Nbt: 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.
- Template:Nbt An item in the inventory, excluding the Slot tag.
<section end="entity data" />
Achievements
Achievements that apply to all mobs: Template:Collapse
Advancements
Advancements that apply to all mobs: Template:Collapse
History
Java Edition
Bedrock Edition
PlayStation 4 Edition
Data history
-
A wandering trader in 19w05a
Issues
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.<ref>Template:Mcnet</ref> It especially resembles the Travelling Merchant from Terraria.
- 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
Renders
-
A wandering trader without its second layer. This state cannot normally be seen in-game.
Concept artwork
-
An early concept featuring texture close to pre-Minecraft:Texture Update design
-
Another concept
-
Concept with a hat and early trader llama
Screenshots
-
A group of spawned-in wandering traders with a trader Minecraft:llama in the background
-
A wandering trader and its llama
-
A wandering trader drinking a Minecraft:potion of Invisibility
-
Two wandering traders
-
A wandering trader that spawned in a player-made village Template:In
-
Wandering trader in the windswept hills
-
A wandering trader next to a nitwit Minecraft:villager
Textures
-
Wandering trader texture file
In other media
-
Artwork
-
Artwork with background
-
A Wandering Trader in promotional artwork for the first Minecraft:Caves & Cliffs update
-
Minecraft:Makena offering a Minecraft:milk bucket to a wandering trader
-
An isometric wandering trader near Minecraft:sheep
-
A wandering trader speaking to Minecraft:Sunny
-
Wandering trader and Minecraft:cartographer in front of sheep
-
A wandering trader with Minecraft:Efe
-
Animated wandering trader artwork
-
Minecraft:Lego Minecraft figure
-
Concept art for Minecraft:A Wanderous Journey
-
A strange looking wandering trader in concept art for Minecraft:Minecraft Adventure
-
A Wandering Trader as seen in Template:AMCM.
-
A wandering trader in Minecraft:Element Animation’s "latest masterpiece"
-
A wandering trader thinking of a regular Minecraft:llama
See also
- Minecraft:The Traveling Trader, a DLC map themed around wandering traders
References
External links
Template:Navbox entities Template:Navbox villagers
Minecraft:de:Fahrender Händler Minecraft:es:Vendedor ambulante Minecraft:fr:Marchand ambulant Minecraft:it:Mercante ambulante Minecraft:ja:行商人 Minecraft:ko:떠돌이 상인 Minecraft:lzh:行商 Minecraft:pl:Wędrowny handlarz Minecraft:pt:Vendedor Ambulante Minecraft:ru:Странствующий торговец Minecraft:th:พ่อค้าเร่ร่อน Minecraft:uk:Мандрівний крамар Minecraft:zh:流浪商人