Minecraft wiki entry for Spawn, associated text: Every 24000 game ticks (20 minutes) the game attempts to spawn a single wandering trader with two leashed llamas within 48 blocks of a player or at a village meeting place, if no wandering trader exists in all loaded chunks. The trader does not spawn when the player is underground.‌‌[Java Edition only]