Wandering Trader: Difference between revisions

Cleaning up maintenance categories.
(Not needed.)
Tag: Undo
(Cleaning up maintenance categories.)
Line 19:
== Spawning ==
 
The wandering trader appears randomly in the [[Overworld]] with 2 [[lead|leashleashed]]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]].
 
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 {{cdcode|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 {{cdcode|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.
Line 29:
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.
 
{{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 {{cdcode|false}}.
 
=== Despawning ===
Line 445:
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:MCV_SpringDrop_testing_Feb12_General_1280x720Lots (8)of blue.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.