Villager

A Villager, also known by many players as a Testificate, is a passive NPC (non-player character) that spawns and moves about in NPC Villages. Their characteristic look is dominated by their large, bald heads, green eyes, unibrows, and long, protruding noses. There are different types, distinguished by the color of their robes, and signifying their role in the community. Some spawn around the village, although most spawn inside buildings and leave once the door is opened. They spawn at their respective buildings corresponding to the role they have. As of Beta 1.9 Pre-Release 3, there are 6 unique skins for the villagers which are found in the minecraft.jar file. Another, unused villager skin is a file called "villager.png" that appears to be the skin of "Steve" with some modifications.

Behavior
Villagers act more like passive mobs. They will randomly look at the player, and wander the area of the village. They do not attack if attacked, however they will be knocked back. When attacked, they will not run away like other passive mobs, and, with the exception of Zombies, hostile mobs do not see them. If the player does happen to kill one, they drop nothing, and others will do nothing about it (though in 12w08a, nearby Iron Golems will attack the player). They can leave buildings to randomly wander outside.

The villagers began the same AI programming as a Pig, although they cannot be led by wheat. Now, starting from Snapshot 12w05a, Villagers gained the ability to utilize doors and therefore able to go in and out houses. In Snapshot 12w06a, Villagers will now hide in houses during night, rain, or Zombies.

Villagers run away from Zombies, which attacks the Villagers. Sieges can occur between these mobs, and the Villager's only defense are the Iron Golems, which protect Villagers from nearby mobs.

In 12w05a, they will "socialize" with each other and passive mobs. This involves two villagers simply facing each other. Since 12w08a, Villager children socialize with Iron Golems. Villagers can also socialize with The Player. This occurs when the player approaches to a Villager and stand still.

In Snapshot 12w07a, Villagers will mate depending on available housing. The amount of housing can be supplemented by the player placing wooden doors nearby, no walls or roofs are necessary. Villagers will then mate continuously until the number of adult villagers equals one third of the number of doors. Any remaining children will grow up as usual, resulting in a total number of adult villagers somewhere above one third of the number of nearby wooden doors. The type of Villager that the child is, doesn't seem to depend on what type the parents are; Two farmer Villagers can have a child that is any of the occupations. Unlike other breed-able, non-tameable mobs, the parents and child have no interaction.

Villager children will sprint about, entering and leaving houses at will. The Villager children will also chase each other around the village to simulate that they are playing tag. Villagers are the second mob in which their heads are sized down to their bodies (the first are Cats). These children will also stop to look at an Iron Golem. If the Iron Golem is holding a rose, the children can take the flower.

Professions
Each Villager's profession can be identified by its clothing: (Note that all Villagers have brown clothing under their robes/aprons)

History
Villagers were first introduced in Beta 1.9 Pre-release 1. They had "TESTIFICATE" over their heads the same way player names are applied in Multiplayer, which was removed in Beta 1.9 Pre-release 2.

As of 1.1, the original Farmer NPC can be spawned in Creative mode by using Spawn Eggs. The other NPC variations may be available in the future.

In 12w05a, Villagers can open and close doors, go inside at night, and can detect houses.

In 12w06a, Villagers can socialize with each other and passive mobs, are attacked by and run away from Zombies, and go inside when it rains.

In 12w07a, Villagers will repopulate NPC villages by the number of houses there are, and their children sprint.

In 12w08a, Iron Golem were added to protect Villagers. They act as guards and will attack nearby hostile mobs or a mob that attacked a nearby Villager (including the player). They spawn in villages but can also be crafted by players (similarly to Snow Golems).

Future
It has been confirmed that there will be more villager AI applied in a future update. This has been fully confirmed during the development phases of Minecraft 1.2, when Villagers slowly gained knowledge Snapshot by Snapshot.

Villagers currently in development with having sieges against Zombies.

Trivia

 * Since the Villager's introduction, there has been a texture in the game files indicating a standard Villager type due to their filename. However, this role seems to be filled by the Farmer type instead, with no Villager of this type ever spawning.
 * A texture in the main mob directory of Minecraft appears to be the default character texture ("Steve") reoriented to be a Villager texture. As is expected, applying it to the current Villager model produces a very broken look, as seen above.
 * Villager's arms are implied to be jointed, with two parts each to create folded arms. Another likely implication is that the arms are tucked inside the sleeves of the robes (or shirts for blacksmiths and butchers) so that the sleeves touch.
 * It has been proven that Villagers can climb ladders if they are in their path, like other mobs.
 * Due to their peculiar look villagers have been ridiculed by the fanbase, sometimes comparing them to Squidward from SpongeBob SquarePants or Bert from Sesame Street. Notch himself agreed they look like "caveman Squidwards".
 * Villagers do not drop Experience Orbs once killed.
 * Before snapshot 12w05a, when Villagers gained the ability to detect houses, Villagers would often wander away from villages, causing villagers to be seen in odd places.
 * As of snapshot 12w08a, Villagers are tied with the large slime as the fourth tallest mob in the game, the tallest being the Ghast, the second being both the Enderman and the Iron Golem. They are exactly 2 blocks tall, most mobs are under 2 blocks tall: Including the player. They are the same height as the largest naturally spawning Slime and Magma Cube.