Minecraft wiki entry for Villager, associated text: Players may use emeralds to buy items from wandering traders without the need of unlocking the previous trade, but cannot trade items for emeralds, although wandering trader trades can be customized using commands in Java Edition. They also lock trades like villagers, but never unlock the trade, nor can they work at any job site blocks. Like villagers, wandering traders are attacked by most zombie variants (though they do not have a zombified form, they die if a zombie kills it, even on hard difficulty), illagers, ravagers‌[Java Edition only], and vexes.