Share

Share

Villages.dat format

From Minecraft Wiki
Jump to: navigation, search
This article is a stub.
Please help us by expanding it.

The villages.dat file located in the data folder of every Minecraft level is used to store information about the villages in the level. It is stored as a GZip'd NBT file.

Since the dimension of a village is not stored, it is not possible to have villages in any dimension other than the overworld prior to 1.8. Since 1.8, additional files villages_nether.dat and villages_end.dat are stored.

Prior to 1.8, villages are "forgotten" and not saved in this file when their chunks are unloaded.

NBT Structure[edit]


  • : The root tag.

    •  data

      •  Tick: Internal clock.

      •  Villages: List of Byte tags when empty, list of Compound tags otherwise.

        • : A village.

          •  ACX: Aggregate of the x-coordinates of all houses.

          •  ACY: Aggregate of the y-coordinates of all houses.

          •  ACZ: Aggregate of the z-coordinates of all houses.

          •  CX: X coordinate of the village center.

          •  CY: Y coordinate of the village center.

          •  CZ: Z coordinate of the village center.

          •  Golems: The number of Iron Golems.

          •  MTick: Last time a villager was killed by a mob, or by a damage source that's not related to an entity while a player was nearby.

          •  PopSize: The number of Villagers.

          •  Radius: Radius of the village.

          •  Stable: Last time a house was added to the village.

          •  Tick: Internal clock.

          •  Doors: The doors in the village.

            • : A door.

              •  IDX: Specifies the inside direction along x.

              •  IDZ: Specifies the inside direction along z.

              •  TS: Last time a villager was nearby.

              •  X: X coordinate.

              •  Y: Y coordinate.

              •  Z: Z coordinate.

          •  Players: List of Byte tags when empty, list of Compound tags otherwise.

            • : A player who has traded or harmed villagers.

              •  Name: The name of the player.

              •  S: The social rank of the player. Can be negative. Goes up with trading and down with harming villagers.