Village

From Minecraft Wiki
(Redirected from NPC Village)
Jump to: navigation, search
Village
Village.png
Biome

Plains, desert, savanna

Consists of

See Structure

Can generate
post-generation

No

First appearances

See history

Villages, also known as NPC villages, are groups of buildings inhabited by villagers that spawn naturally in the world.

Generation[edit | edit source]

Villages generate naturally in plains, savanna, and desert biomes.

Structure[edit | edit source]

Bookshelves in a village library.

Number and frequency of structures[edit | edit source]

The number of buildings composing a village can vary, and not every village is composed of all buildings at once. Apart from the well, which is unique and systematic, the number of buildings of each type is randomly generated, and increased in superflat worlds. Structures are picked from a weighted probability list (libraries are more common than butcher shops). There may be fewer buildings of a given type than the maximum allowed. The number of lamp posts has no restriction, as they are generated where no other buildings can be placed. In savanna and plains villages, gravel roads are found between the buildings of the village and often extend beyond them. In desert villages these roads are made of sandstone.

Structure Weight Default maximum
range
Superflat maximum
range
Hut 3 2 – 5 3 – 8
Small house 4 2 – 4 3 – 6
Large house 8 0 – 3 1 – 5
Butcher's shop 15 0 – 2 1 – 3
Library 20 0 – 2 1 – 3
Small farm 3 2 – 4 3 – 6
Large farm 3 1 – 4 2 – 5
Blacksmith 15 0 – 1 0 – 2
Church 20 0 – 1 1 – 2

Plains and savanna[edit | edit source]

An image of a village

Village buildings in plains and savanna biomes will be made out of oak wood, oak wood planks, cobblestone, cobblestone stairs, and glass panes.

The following blocks can be found in plains and savanna villages:

Block

Oak Fence

Oak Wood

Oak Wood Planks

Oak Door

Cobblestone

Water

Lava

Double Stone Slab

Dirt

Torch

Black Wool

Oak Wood Stairs

Glass Pane

Chest

Wooden Pressure Plate
[note 1]

Iron Bars

Cobblestone Stairs

Gravel
[note 2]

Stone Slab

Farmland

Wheat Crops

Carrot Crops

Potato Crops

Bookshelf

Crafting Table

Furnace
  1. In Pocket Edition, wooden pressure plate is replaced by carpet.
  2. In Pocket Edition, gravel is replaced by grass path blocks. If a village spawns next to a river/lake, these grass paths on water will be replaced by wooden bridges.

Desert[edit | edit source]

Village buildings in desert biomes are made out of sandstone, smooth sandstone, sandstone slabs, sandstone Stairs and Glass Panes instead of wooden or cobblestone features. Also, the plains and savanna biome villages have gravel roads while the desert biome villages have sandstone roads. Sometimes desert villages will spawn directly over a Desert Temple. This will cause the temple to have extra or missing blocks.

The following blocks can be found in desert villages:

Block

Sandstone

Smooth Sandstone

Sandstone Stairs

Oak Door

Oak Fence

Water

Lava

Double Stone Slab

Dirt

Torch

Black Wool

Glass Pane

Chest

Wooden Pressure Plate
[note2 1]

Iron Bars

Gravel

Stone Slab

Farmland

Wheat Crops

Carrot Crops

Potato Crops

Bookshelf

Crafting Table

Furnace
  1. In Pocket Edition, wooden pressure plate is replaced by carpet.

Loot[edit | edit source]

Typical blacksmith loot

Each village blacksmith chest contains 3–8 item stacks, with the following distribution:

Stack Size Weight # Items Chance # Chests

Apple
1–3 1594 1.755 61.6% 1.6

Bread
1–3 1594 1.755 61.6% 1.6

Iron Ingot
1–5 1094 1.755 46.1% 2.2

Oak Sapling
3–7 594 1.463 26.0% 3.9

Obsidian
3–7 594 1.463 26.0% 3.9

Gold Ingot
1–3 594 0.585 26.0% 3.9

Iron Pickaxe
1 594 0.293 26.0% 3.9

Iron Sword
1 594 0.293 26.0% 3.9

Iron Helmet
1 594 0.293 26.0% 3.9

Iron Chestplate
1 594 0.293 26.0% 3.9

Iron Leggings
1 594 0.293 26.0% 3.9

Iron Boots
1 594 0.293 26.0% 3.9

Diamond
1–3 394 0.351 16.3% 6.1

Saddle
1 394 0.176 16.3% 6.1

Iron Horse Armor
1 194 0.059 5.7% 17.5

Gold Horse Armor
1 194 0.059 5.7% 17.5

Diamond Horse Armor
1 194 0.059 5.7% 17.5

In 1.9,[upcoming] each village blacksmith chest contains 3–8 item stacks, with the following distribution:

Stack Size Weight # Items Chance # Chests

Apple
1–3 1594 1.755 61.6% 1.6

Bread
1–3 1594 1.755 61.6% 1.6

Iron Ingot
1–5 1094 1.755 46.1% 2.2

Oak Sapling
3–7 594 1.463 26.0% 3.9

Obsidian
3–7 594 1.463 26.0% 3.9

Gold Ingot
1–3 594 0.585 26.0% 3.9

Iron Pickaxe
1 594 0.293 26.0% 3.9

Iron Sword
1 594 0.293 26.0% 3.9

Iron Helmet
1 594 0.293 26.0% 3.9

Iron Chestplate
1 594 0.293 26.0% 3.9

Iron Leggings
1 594 0.293 26.0% 3.9

Iron Boots
1 594 0.293 26.0% 3.9

Diamond
1–3 394 0.351 16.3% 6.1

Saddle
1 394 0.176 16.3% 6.1

Iron Horse Armor
1 194 0.059 5.7% 17.5

Gold Horse Armor
1 194 0.059 5.7% 17.5

Diamond Horse Armor
1 194 0.059 5.7% 17.5

In Pocket Edition, blacksmith chests also include ink sacs and emeralds

Mechanics[edit | edit source]

A village is almost always composed of at least one acceptable house and one villager. In some rare cases, villages have spawned with a well and nothing else (This appears to occur very frequently on console versions). Upon creation, a village center is defined as the geometric barycenter (i.e. centroid) of the active doors' locations, and the village's size is the greater of 32 blocks or the distance to the furthest door from the center. Any villager, village golem, or siege-spawned zombie will path back into the village if they find themselves farther than "size" blocks from the center.

As the villagers move around, the area near them is occasionally checked for new valid doors ("houses"). Thus, the random movement of villagers may also slowly change the center of the village they live in, even if no houses are actually changed. If a new valid door is found more than 66 blocks outside of any existing village's center, a new village is created; if a new valid door is found fewer blocks away than that, the door is added to an existing village and the center is recalculated.

The minimum population of a village is 0.35 times the number of valid doors (see Tutorials/Village mechanics#Housing). If the population drops below that point (due to death or kidnappings), but there are at least two villagers left who can reach each other, the villagers will mate and breed until the population is above the minimum.

Adult villagers can be traded with by right-clicking/using interact button on them on PC/console. Currently, trading is not in the Pocket Edition.

Advanced village placement[edit | edit source]

When attempting to place villages as close to each other as possible (for an iron golem farm for example) if their centers are to share the same x & y or y & z coordinate then the remaining coordinate must differ by 66 or more. So for example village A at 0 64 0 and village B at 0 64 66 will not merge, but if village B is at 0 64 65 they will. For all other cases if the real distance sqrt(x2 + y2 + z2) between their centers is greater than or equal to 65 they will not merge. So if village C is built above the middle line between village A and B then their x difference is again 0 their z difference is now 33 so using the formula d2 = x2 + y2 + z2 or 652 = 02 + 332 + y2, their y difference must be at least 56 or in other words C's center should be at 0 120 33.

Note: The integer rounding in the game's internal programming may allow villages to be placed one block closer under certain circumstances, but this formula will function to keep the villages apart every time.

Popularity[edit | edit source]

A player's popularity starts at zero, and ranges between -30 and 10, and the following can alter a player's popularity:

Popularity of Actions
Action Popularity Change
Trading a villager for the last offer slot on their list +1
Attacking a villager -1
Killing a villager -2
Attacking a villager child -3
Killing a village's Iron Golem -5

A player's popularity does not reset on death, and players cannot alter other players' popularity. Popularity changes only happen once, so if you attacked a villager, then brought him to a different village, you would get the -1 popularity in the first village, but not the second. Popularity is stored per village; a player may have a high popularity in one village and a very low one in another. When a player's acts directly on a villager, particles around that villager will indicate the change in popularity. Conversely, because popularity is stored per village, if the entire village is destroyed, any accumulated popularity, positive or negative, is also eliminated.

If a player has -15 popularity or less, iron golems of that village will become aggressive to that player. If an iron golem is idle, it may become aggressive to the nearest player with -15 or lower popularity. However, "nearest" can be any distance at all, so if the village's chunks are loaded (perhaps by another player), the golems can turn hostile even after the unpopular player has traveled across the world.

If a villager dies to a non-mob, non-player source while a player is within 16 blocks, or if a monster kills a villager, then no villager in the village will mate for approximately 3 minutes.

Video[edit | edit source]

History[edit | edit source]

  • Notch originally worked on Villages by himself, but eventually gave the task to Jeb, so that he could work on other things.[1]
  • A picture of villages was released by Notch before Beta 1.8 was released.[2][3] In the early screenshots, villages were partly made of Moss Stone.
  • Villages were shown to the public during the PAX 2011 demo, including the interiors.
  • Jeb has said that during early tests of villages, the lava in a smithy often set the village on fire.[4]
  • An early interview with Notch discussed his plans for the village.[5]
Beta
1.8 Villages added. They were originally intended to be populated with Pigmen.[6]
Official release
1.0.0 Villager mobs were added instead with 'TESTIFICATE' written above their heads. This was later removed.
1.1 12w01a Superflat added, allowing bigger villages.
? Blacksmith buildings in Villages now hold chests with loot.
1.2.1 12w07a Zombie sieges added, and Villagers become able to spawn according to number of houses. The player may add houses to the village.
12w08a Larger villages now spawn iron golems to defend them.
1.3.1 12w21a Trading is introduced.
Desert villages are now made of sandstone instead of wood and cobblestone.
1.4.2 12w32a Villages now track the "popularity" of individual players by username.
12w36a Potatoes and carrots can be found in NPC villages.
1.5 13w03a Changes to water-block generation will make wells proper infinite water sources.
13w06a Lamppost glitch fixed.
1.7.2 13w36a Savanna biome added, which villages can generate in.
1.8 14w03a Gravel roads in villages have cobblestone underneath, to prevent them from collapsing into caves.
14w04a Doors are now added to the closest village.
14w25a Zombie Sieges re-implemented.
14w30a Wells in desert villages are now made of sandstone instead of cobblestone.
Upcoming
1.9 15w31a Farms now include beetroot crops.
Pocket Edition Alpha
0.9.0 build 1 Added villages. They spawn with gravel, wooden or sandstone bridges.
build 2 Desert villages are now made of sandstone.
build 4 Made villages rarer.
build 7 Made villages more common.
0.11.0 build 1 Grass path blocks replace gravel paths in villages.
0.12.1 build 1 Larger villages now spawn iron golems to defend them.
build 8 Farms now include beetroot crops.
Upcoming Pocket Edition
0.14.0 build 3 Increased door-to-villager ratio (was previously 1:1).
Console Edition
TU5 CU1 1.0 Added villages.
TU9 Blacksmith buildings in Villages now hold chests with loot.
TU14 1.04 Added desert villages.
? ? ? Wells in desert villages are now made of sandstone instead of cobblestone.
TU31 CU19 1.22 Savanna biome added, which villages can generate in.
Gravel roads in villages have cobblestone underneath, to prevent them from collapsing into caves.

Issues[edit | edit source]

Issues relating to “Village” are maintained on the issue tracker. Report issues there.

Trivia[edit | edit source]

  • Farms in the villages avoid overhanging by filling in the area below them with dirt. When the farm overhangs a ravine, this can cause a very tall rectangular dirt structure.
  • Farms will generate a few blocks of open space above them if they happen to generate inside a hill. This can cause sand to float over farms in desert villages.
  • Occasionally, surface ravines will be generated through villages, causing missing pathways or even entire buildings sunken into the ravine. This also applies to cave entrances and other surface oddities.[7]
  • The well acts as the "center" of the village in reference to Minecraft's code. If a well generates in a desert, all buildings and paths will be made of sandstone, even if all other buildings are in an adjacent plains biome. The well also appears to be the point where village-locating tools will point to. This explains why there is always exactly one well in each village.
  • In the Console edition the village behind the castle has a blacksmith, but there is only a Music Disc not ordinary loot.

Gallery[edit | edit source]

Pocket Edition[edit | edit source]

Odd generation[edit | edit source]

References[edit | edit source]