Liberty's Villagers

Liberty's Villagers

623k Downloads

Liberty's Villagers

Are you the mayor of a village? Are you tired of your villagers failing to find their beds at nightfall, or forgetting their workstations in the morning? Have you seen one too many villager die from jumping off stairs and injuring themselves over and over? Well, Liberty's Villagers is here to help!

Liberty's Villagers is a fabric mod that improves the logic and allows the mayor (you) to modify villager behavior to provide a better experience for your villagers!

Features:

General

  • Adjust the range which villagers will find Points Of Interest (useful for vertical or large cities)
  • Adjust how long a villager will travel to Points of Interest
  • Adjust how close a villager needs to get to use a Point of Interest
  • Optional - Heal Villagers when they wake up (like Bedrock)
  • Optional - Prioritize villagers avoiding cactus and water
  • Optional - Pathfinding fix for villagers becoming "stuck" near walls/fences
  • Optional - Prevent villagers from climbing up ladders and vines (they don't know how to climb back down, poor dears)
  • Adjust the distance villagers will consider "safe" for jumping down from ledges
  • Optional - Villagers can consume melon slices and pumpkin pie for food
  • Optional - Prevent villagers from breeding (for when you've got a bed that isn't pathable that is causing a population boom)
  • Optional - Require a free workstation when Villagers decide to have a baby
  • Optional - Prevent villagers from trampling crops
  • Optional - Stop villagers from seeking workstations and meeting points in the middle of the night
  • Optional - No nitwit villagers
  • Optional - Every villager is a nitwit
  • Optional - Every villager is a baby
  • Optional - Babies never grow up
  • Optional - Configure the time it takes for a baby villager to grow up

Villager Professions

  • Optional - Armorers seek out and heal Iron Golems during work hours
  • Optional - Clerics seek out and heal Villagers and Players during work hours
  • Adjust how far farmers will look for crops in x/z and y planes.
  • Optional - Farmers prefer to plant the same type of crop they just harvested
  • Optional - Farmers can plant and harvest melons and/or pumpkins

Golems

  • Optional - Golems avoid cactus
  • Optional - Golems avoid water
  • Optional - Golems don't attack players
  • Optional - Prevent Villagers from summoning Golems (for when there's a Golem overpopulation problem)
  • Optional - Choose how many golems can spawn in a specified radius

Cats

  • Optional - Choose how many cats can spawn in a specified radius
  • Optional - Cats don't despawn
  • Optional - Black cats can spawn at any time (not just during a full moon)
  • Optional - Every cat is a black cat (as ordered by my cat)

Debug

  • Villagerstats command which gives you a summary how how many Villagers are in your town and what their occupations are, how many are homeless, number of golems, number and types of cats, and how many open beds are available, in an easy-to-read book format.
  • Villagerinfo command which tells you a summary of a Villager standing before you - where there bed is, where their workstation is, where their meeting place is, and what they are holding in their inventory. If looking at a Point of Interest (such as a workplace, bed, or bell), it will tell you whether that POI is claimed by a Villager.
  • VillagerSetPOI command which lets you toggle whether a block (such as a bed, workplace, or bell) is a valid Point Of Interest or not, so you can disable decorative blocks from being considered a workplace, and reserve your own bed to sleep in at night.
  • Villager Info overlay - for single player and integrated servers, you can see the data from Villagerinfo update as you look around, useful for quick debugging during the Villager's meeting times.

Screenshots

Villagers General #1 Villagers General #2 Villagers General #3 Villagers General #4 Villagers Professions #1 Villagers Professions #2 Golems #1 Golems #2 Cats #1 Debug #1 Villager Info Overlay

Villager Stats Title Villager Stats Jobs Villager Stats Workstations Villager Stats - Homeless Villager Stats Beds Villager Stats Golems Villager Stats Cats

Dependencies

If you want to run this on a dedicated server, you will need the "Server Translation API" version 1.4.17 or higher.

To edit the mod's options on the client, you will need to the "Mod Menu" mod.

Credits

Thanks to SuperSaiyanSubtlety's Enchantment Lore fabic modSuperSaiyanSubtlety's Enchantment Lore for writing code under the MIT license for opening the book UI on the server.

Thanks to kressety for the Simplified Chinese translations.