Minecraft wiki entry for Zombie, associated text: Zombies target wandering traders within 35 blocks and can see traders through walls. The zombie focuses solely on the trader unless it's attacked, or if either it or the target is killed or moved out of range, or if the trader is under the invisibility status effect.