Villager (Minecraft)

The Villagers, formerly known as, Testificates, are one of the major protagonists in the Minecraft franchise. They serve as the main tritagonists of the sandbox videogame, Minecraft, and the supporting protagonists in the Minecraft spin-offs, Minecraft: Dungeons, Minecraft: Earth, and Minecraft: Story Mode, although Norm is the only villager in Story Mode.

They are passive mobs, that inhabit villages, work at their professions, breed, and interact. Their clothing varies according to their occupation. A player can trade with villagers, using emeralds as currency. They are considered as the tritagonists because they will give the players items and useful resources to help them complete their own journey. In condition, the player has to defeat the village raids in order for them to reward the player and will earn an advancements and multiple experiences.

Personality
The villagers are kind, good, loyal, passive, neutral, intelligent, merciful, trustful, caring, responsible, selfless, and slightly antagonistic sometimes. They will give any of their items to the player in return for helping them defeat the raid.

Appearance
Villagers and zombie villagers have seven skin types corresponding to the biome they spawn in. Their appearance also varies based on their profession and their five tiers. They show which trade tier they have unlocked by a badge of a varying material on their belt. A new tier is obtained every time a player trades with a villager and the badge appears as stone, then iron, gold, emerald and finally diamond. In Bedrock Edition, villagers only have three badge tiers: iron, gold, and diamond.

Natural generation
Villagers spawn in the houses with beds of their villages, which spawn in several biomes.

A cleric villager spawn locked up in the basements of igloos, under the carpet of the floor. In Bedrock Edition, the villager and zombie villager inside igloo basements have random professions instead of always being clerics.

Breeding
Villagers will breed depending on the time of the day, but new baby villagers need beds and the adult villagers need to be willing in order to spawn baby villagers. After exactly 20 minutes, the baby villager will grow up into an adult. If a villager dies to a non-mob, non-player source while a player is within 16 blocks (spherical radius), or if a monster kills a villager, then no villager in the village will breed for approximately 3 minutes.

The breeding depends on the number of valid beds. If a villager is "willing" (see below), villagers will breed as long as the population is less than 100% of valid beds. All baby villagers are initially unemployed. Willing villagers reproduce as long as there are unclaimed beds available within the limits of the village.

A census is periodically taken to determine the current population of the village. All villagers within the horizontal boundary of the village and within 5 vertical blocks of the center will be counted as part of the population to determine if continued villager mating is allowed. However, any villager within the horizontal boundary of the village and within the spherical boundary of the village will attempt to enter mating mode as long as there is at least one villager within the boundary. If two villagers simultaneously enter mating mode while they are close to one another, they will breed with each other and produce a child.

Willingness
Villagers must be "willing" in order to breed. After mating, they will no longer be willing, and must be made willing again.

Villagers need to have enough beds within village bounds for baby villagers to spawn.

Villagers can become willing by having either 3 bread, 12 carrots, 12 potatoes, or 12 beetroot in one stack in their inventory. Any villager with an excess of food (usually farmers) will throw food to other villagers, allowing them to pick it up and obtain enough food to become willing. The player can also throw bread, carrots, beetroots, or potatoes at the villagers themselves to encourage breeding. Villagers will consume the required food upon becoming willing.

Zombie villagers
When a zombie kills a villager, it can turn the villager into a zombie villager, depending on the difficulty: 0% chance on easy, 50% chance on normal and 100% chance on hard. Zombie villagers also spawn naturally in the Overworld in the same conditions as a normal zombie, although much less commonly. Zombie villagers also spawn in zombie villages.

Illagers
The Illagers are the main archenemies of the villagers as they raid their villages. Illagers are hostile villager-like mobs that spawn in woodland mansions while the pillager lives in an outpost. Pillagers are considered to be outcasts. In addition to attacking players, they will also attack villagers, wandering traders and iron golems. In Bedrock Edition, illagers will not attack baby villagers, however baby villagers still run away from them.

Witches
Witches are hostile, villager-like mobs, which spawn in the overworld according to the usual mob rules. They can also spawn in witch huts, or spawn from a villager struck by lightning. Witches may also spawn as a part of raids.

Wandering trader
Wandering traders spawn randomly around the world in the PC version, or periodically in village gathering sites in Bedrock Edition. Two trader llamas spawn leashed to the wandering trader. Players may use emeralds to buy items from wandering traders, but cannot trade items for emeralds. Like villagers, wandering traders are attacked by most of the hostile variants of the villagers.

Behavior
Nitwit and unemployed villagers will leave their homes at day and begin to explore the village. Generally, they wander aimlessly inside the village during the day. They may go indoors or outdoors, and they periodically make mumbling sounds. Occasionally, two villagers may stop and turn to look at each other, in a behavior called socializing, in which they will stare at another villager for 4-5 seconds at a time. In the case of players, they will continuously stare at them as long as the player is close enough, unless the villager tries to get into a house at night, farm food, work or flee from a zombie or illager. During a raid, villagers will run away from illagers and run to the nearest house, similar to a zombie siege. For a villager to hide, the house must have a door.Before the first raid wave, at least one villager will rush to ring the bell in the center of the village (if they are close enough) to warn the other villagers of an incoming raid before going into their house. A villager will often stay in the house it ran to, but may exit its house occasionally. The player will still be able to trade with villagers during the raid. On random occasions the villager will display water particles as if sweating. Once the player gains an advancements status after defeating a raid, villagers will lower their trade prices and throw gifts to the player relating to their profession.

Trivia

 * The villagers were inspired by the shopkeepers in Dungeon Masters 5.
 * Originally, the mobs populating villages were to be pigmen.
 * Name tags used on villagers will always name the villager instead of opening the trading interface.
 * After a zombie villager is cured, the villager gets Nausea for 10 seconds (indicated by the purple status effect particles).
 * When a villager is in love mode, it walks very slowly. However, when a villager runs indoors as the night falls, it runs faster than the player's sprinting speed.
 * Unlike players, villagers can claim and sleep in beds in the Nether and the End without causing them to explode. Therefore, villages can be created in both dimensions.
 * The new villager skins added in the 1.14 update were inspired by 2018 fashion shows, such as Gucci's.
 * Villagers occasionally sleep in odd ways during the night inside their beds, sometimes hanging halfway off the side of their bed or even glitching into walls.