Tutorial:Wandering Trader farming
Wandering traders can be farmed for their llamas, leads, leather, and most significantly, their trades.
Their trades provide a renewable source for items that would otherwise be non-renewable without glitches, including sand, red sand, small dripleaf, and coral blocks. It is generally more efficient to obtain these items by manual collection, however, farming wandering traders can be useful in challenge maps like skyblock, or in different world types where those resources would otherwise be unavailable. Since trading requires a steady supply of emeralds, a source such as a trading hall is recommended
Concept Edit


The basic concept of a wandering trader farm is to efficiently spawn, lure and trap every wandering trader that appears. This is most easily accomplished by creating a large 97x97 platform above an ocean (which prevents spawns elsewhere) to maximize the potential for wandering trader spawns.
Spawning Edit
Each day (24000 ticks), an attempt to spawn a wandering trader is made. The game first picks a random player in the world, and then looks for a bell in a 48 block radius around the player. If a bell is found, the wandering trader will spawn in a 48 block radius around that bell, otherwise, the wandering trader will attempt to spawn around the player instead. This begins with a 25% chance to attempt a spawn on the first day, a 50% chance on the second, and a 75% chance on the third and 75% thereafter. This resets to 25% again once a trader has spawned. This is however, just the chance of an attempt at a spawn. Most spawn attempts subsequently fail, and as such, this farm is particularly slow.
To maximize the chance of a spawn to occur at the farm, all players on a multiplayer server need to be at the farming location, or the wandering trader may spawn at another player's location, reducing efficiency.
To account for these spawning conditions, a 97x97 (48 block radius) platform is built around the player's location. This platform should be flat and well lit, with no roof or blocks placed above, to ensure all spawning spaces are valid.
Luring Edit
Once a wandering trader has spawned, they must be swiftly moved into the nether. Upon spawning, if a bell has been found, a wandering trader will begin to walk toward that bell. This can be used to lure the wandering trader to the center of the platform into a catchment area consisting of flowing water, which will push the wandering trader into a nether portal.
Storing Edit
After a wandering trader has been lured, it is pushed into a nether portal for storage. Moving the wandering trader to the nether ensures that they remain unloaded, so that their despawn timer doesn't deplete, and prevents them from blocking any further spawn attempts. The traders can be stored in a sealed room on the other side of the portal to be traded with in bulk at a later point.