Villager

Villagers (AKA NPC Villagers) are mobs that were added to Pocket Edition in Update 0.9.0. They cannot currently trade with the player due to degraded AI. Trading may come within a future update.

Spawn
Villagers only spawn naturally in NPC Villages. They can also be spawned with spawn eggs in creative mode. They will never despawn even if the player wanders away from them, but they may leave the village if not enclosed.

AI

 * Villagers spawn in various houses depending on their occupation. For example, a librarian will spawn in a Library.
 * Villagers will leave the village, unless trapped.
 * Villagers 'socialize' with other villagers, doing so by facing the approaching villager and making villager sounds.
 * They also have angry particles when attacked.
 * Villagers run away from all hostile mobs, except Hostile Wolves. After Update 0.12.1, they will run away only from Zombies.
 * Villagers cannot trade as of Update 0.12.1.
 * Villagers can open and close doors.
 * Villagers can breed, but only if they are willing.
 * Villagers may turn into Zombie Villagers if killed by a Zombie.
 * Farmer Villagers can break crops and plant them back.

Occupations
Each villager has professions, which are seen in both their robe color and their building of residence.


 * Farmers: Have Brown Robes, and live in small houses near farms. Can plant crops.
 * Librarians: Have White Robes, and live in libraries.
 * Priests: Have Purple robes, and live in cobblestone churches.
 * Blacksmiths: Have Brown robes with a black apron, and live in forges.
 * Butchers: Have Brown robes a with white apron, and live in butcher shops.

Trivia

 * Villagers are the only mobs that can open doors (as of 0.12+).
 * Baby Villagers can also spawn in Villages. They have higher pitched sounds, and run faster than normal villagers.
 * When villagers are attacked by a player, they will make no attempt of escaping. Since 0.12+ they will make Angry Particles when hit by player.
 * However, a nearby Iron Golem may attack the player.