Traveling Merchant

The Traveling Merchant is a Villager added by Primitive Mobs. Unlike other Villagers it never appears in Villages, instead it randomly spawns in the Overworld during the day, like animals, and eventually despawns like monsters.

Right clicking a Traveling Merchant with a Block of Emerald will consume it and prevent the Merchant from despawning.