Liberty's Villagers
你是村庄的市长吗?你是否厌倦了村民在夜幕降临时找不到他们的床,或者在清晨忘记他们的工作站?你是否见过太多村民因为反复跳下楼梯而受伤甚至死亡?那么,Liberty's Villagers 就是来帮你的!
Liberty's Villagers 是一款 Fabric 模组,它改进了逻辑并允许市长(也就是你)修改村民的行为,从而为你的村民提供更好的体验!
功能:
通用设置
- 调整村民寻找兴趣点(Points Of Interest)的范围(适用于垂直或大型城市)
- 调整村民前往兴趣点的最大路程时间
- 调整村民使用兴趣点所需的最接近距离
- 村民只会收集食物物品或其职业所需的物品(例如农民收集种子等)
- 可选 - 当村民醒来时为他们治疗(类似基岩版机制)
- 可选 - 优先让村民避开仙人掌、水、铁轨、陷阱门和细雪。
- 可选 - 修复村民在靠近墙壁/栅栏时“卡住”的路径寻址问题
- 可选 - 防止村民攀爬梯子和藤蔓(它们不知道怎么爬下来,可怜的家伙们)
- 调整村民认为跳跃下落是“安全”的距离范围
- 可选 - 村民可以食用西瓜片、南瓜派以及煮熟的鳕鱼和鲑鱼作为食物
- 可选 - 防止村民繁殖(当你有一张无法寻路的床导致人口爆炸时使用)
- 可选 - 要求村民在决定生宝宝时必须有一个空闲的工作站
- 可选 - 防止村民践踏农作物
- 可选 - 阻止村民在深夜寻找工作站和集会点
- 可选 - 没有笨蛋村民
- 可选 - 所有村民都是笨蛋
- 可选 - 所有村民都是婴儿
- 可选 - 婴儿永远不会长大
- 可选 - 配置婴儿村民长大的所需时间
村民职业
- 可选 - 盔甲匠在工作时间内寻找并治疗铁傀儡
- 可选 - 牧师在工作时间内寻找并治疗村民和玩家
- 调整农民在 x/z 和 y 轴上寻找农作物的范围。
- 可选 - 农民倾向于种植他们刚刚收获的同种作物
- 可选 - 农民可以种植和收割西瓜/或南瓜
- 可选 - 屠夫如果有合适的食物,可以喂养鸡、牛、猪、兔子和羊
- 可选 - 箭工如果有种子,可以喂养鸡。
- 可选 - 皮革工匠如果有小麦,可以喂养牛。
- 可选 - 牧羊人如果有小麦,可以喂养羊。
- 调整村民寻找动物进行喂养的范围。
- 如果范围内特定类型的动物过多,则阻止村民进行喂养。
- 可选 - 渔夫会钓取生鳕鱼/生鲑鱼,并在补充工作站库存时将其煮熟。
- 可选 - 图书管理员会寻找附近的书架。
铁傀儡
- 可选 - 铁傀儡会避开仙人掌、水、铁轨、陷阱门和细雪。
- 可选 - 铁傀儡不会攻击玩家
- 可选 - 阻止村民召唤铁傀儡(用于解决铁傀儡过剩的问题)
- 可选 - 选择指定半径内可以生成的铁傀儡数量
- 可选 - 水下铁傀儡在结束对怪物的攻击后会路径寻址回到岸边。
- 可选 - 为铁傀儡提供远离最近集会点的最大寻路范围。
- 可选 - 防止铁傀儡攀爬梯子/藤蔓。
猫
- 可选 - 选择指定半径内可以生成的猫的数量
- 可选 - 猫不会消失
- 可选 - 黑猫可以在任何时间生成(不仅仅是在满月时)
- 可选 - 所有的猫都是黑猫(这是我猫的命令)
- 可选 - 为猫提供远离最近集会点的最大寻路范围。
- 可选 - 防止猫攀爬梯子/藤蔓。
调试
Villagerstats命令:以易读的书籍格式向你汇总你的城镇中有多少村民及其职业、多少是无家可归者、铁傀儡的数量、猫的数量和类型,以及可用的空床数量。Villagerinfo命令:告诉你面前站立的村民的摘要信息——他们的床在哪里,工作站在哪里,集会点在哪里,以及他们背包里拿着什么。如果观察一个兴趣点(如工作场所、床或钟),它会告诉你该兴趣点是否已被某个村民认领。VillagerSetPOI命令:让你切换某个方块(如床、工作场所或钟)是否为有效的兴趣点,这样你可以禁用装饰性方块被视为工作场所,并将你自己的床保留为夜间睡觉使用。- 村民信息叠加层 - 对于单人游戏和集成服务器,你可以在环顾四周时实时查看
Villagerinfo更新的数据,这在村民集会期间进行快速调试非常有用。
截图

依赖项
如果你想在专用服务器上运行此模组,你需要安装 "Server Translation API" 1.4.17 或更高版本。
要在客户端编辑模组的选项,你需要安装 "Mod Menu" 模组。
致谢
感谢 SuperSaiyanSubtlety's Enchantment Lore fabric mod 在 MIT 许可证 下编写代码以打开服务器上的书籍界面。
感谢 kressety 提供的简体中文翻译。 感谢 Cape-City 提供的德语翻译。
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
- Villagers only gather food items, or items needed by their profession (seeds for farmers, etc)
- Optional - Heal Villagers when they wake up (like Bedrock)
- Optional - Prioritize villagers avoiding cactus, water, rails, trapdoors, and powdered snow.
- 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, pumpkin pie, and cooked cod and salmon 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
- Optional - Butchers can feed chickens, cows, pigs, rabbits, and sheep if they have the appropriate food
- Optional - Fletchers can feed chickens if they have seeds.
- Optional - Leatherworkers can feed cows if they have wheat.
- Optional - Shepherds can feed sheep if they have wheat.
- Adjust how far villagers will look for animals to feed.
- Prevent the villager from feeding if there are too many specific animals in range.
- Optional - Fisherman go fishing for raw cod/salmon, will cook them when restocking at their workstations.
- Optional - Librarians will seek out nearby bookcases.
Golems
- Optional - Golems avoid cactus, waters, rails, trapdoors, and powdered snow.
- 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
- Optional - Underwater Golems path back to shore when done attacking monsters.
- Optional - Provide a maxmum range for Golems to path away from the nearest meeting point.
- Optional - Prevent Golems from climbing up ladders/vines.
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)
- Optional - Provide a maxmum range for cats to path away from the nearest meeting point.
- Optional - Prevent cats from climbing up ladders/vines.
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

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 mod for writing code under the MIT license for opening the book UI on the server.
Thanks to kressety for the Simplified Chinese translations. Thanks to Cape-City for the German translations.
下载 Liberty's Villagers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Liberty's Villagers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Liberty's Villagers
下载 Liberty's Villagers
下载 Liberty's Villagers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Liberty's Villagers
下载 Liberty's Villagers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Liberty's Villagers
下载 Liberty's Villagers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Liberty's Villagers
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.0.14+fabric+1.19.4 (2023-04-16)
新功能
- 添加了德语翻译。感谢 Cape-City 提供译文!
Bug 修复
- 修复了村民大脑调试时的崩溃问题(仅限 1.19.4 版本崩溃)。
- 将村民大脑调试和调试信息叠加层的默认值设置为 false。
1.0.13+fabric+1.19.2 (2023-01-23)
新功能
- 村民现在可以避开玻璃板,这迫使他们的寻路 AI 在创建新路径时考虑能否穿过玻璃板。(4cde24e543ec447)
Bug 修复
- 修复了重复使用流导致的崩溃。(2b5565a4dec5707)
- 修复了村民不拾取物品的问题。(仅 1.19.3 版本中的错误。)
1.0.12+fabric+1.19.2 (2023-01-15)
新功能
- 添加了蜜蜂避开活板门的选项。(578b35de89983c2)
Bug 修复
- 改进了农夫偏好相同作物的逻辑:如果他们在农田上发现一块没有种植作物的土地,他们会查看周围农田以了解正在生长哪些其他作物,并在拥有相应种子时种植相同的作物。(fbda97228575eaf)
- 修复了当所有床都被占用时,村民不去占用的床的问题。(164104eeccd5545)
1.0.11+fabric+1.19.2 (2023-01-04)
Bug 修复
- 将 GolemsMoveToShoreRange 重命名为 GolemsPathfindToShoreRange,以解决部分用户配置文件中存在旧的、过大的默认数值从而导致游戏卡死的问题。(ed426eb597a0d4b)
1.0.10+fabric+1.19.2 (2022-12-31)
新功能
- 渔夫现在可以钓到鳕鱼和三文鱼。他们在工作站补充货物时会“烹饪”鱼类,然后可以将其与其他村民交易,后者可用于繁殖。(157f34726877cd0)
- 添加了关于铁傀儡攻击范围的配置选项,并将默认值重置为 Mojang 的 48。(7fc8a337aee56f1)
1.0.10+fabric+1.19.2 (2022-12-31)
新功能
- 渔夫现在可以钓到鳕鱼和三文鱼。他们在工作站补充货物时会“烹饪”鱼类,然后可以将其与其他村民交易,后者可用于繁殖。(157f34726877cd0)
- 村民只拾取食物物品及其职业所需的物品。(157f34726877cd0)
- 添加了关于铁傀儡攻击范围的配置选项,并将默认值重置为 Mojang 的 48。(7fc8a337aee56f1)
1.0.9+fabric+1.19.2 (2022-12-28)
新功能
- 添加了屠夫喂养兔子、鸡、绵羊和猪的选项。(32524bf5ef99ef0)
- 添加了皮革工匠和屠夫以指定范围和最大数量喂养牛的选项。(ecd537abec64b74)
- 添加了防止猫爬上无法下楼的梯子/藤蔓的选项。(454961b1ef53cf9)
- 增加了铁傀儡搜索受惊村民的范围,从 32 改为 findPOIRange。(682587dfeffb004)
- 添加了使铁傀儡在水中时返回岸边的选项。(f8bba3d96d6b6ee)
- 添加了强制猫停留在离最近集会铃铛指定范围内的选项。(bc240f038b7de1c)
- 添加了强制铁傀儡停留在离最近集会铃铛指定范围内的选项。(f02472e272d0ca6)
Bug 修复
- 添加了图书管理员寻找书籍的可选配置。(0b36e7c3b861d84)
- 铁傀儡不应在水中追逐溺尸。(b20222a77d28083)
- 不要在首次加载时始终运行 ReturnToShoreGoal。(49501979a26abf3)
- 改进铁傀儡寻路回岸边。(435dbd944ee67cb)
1.0.8+1.19.3 (2022-12-20)
Bug Fixes
- 修复了在服务器模式下启用优化时刻发生的崩溃。 (aafd4538b40256f)
1.0.7+1.19.3 (2022-12-18)
Features
- 在村民信息中添加了蜂蜜等级和蜜蜂数量。 (ea93dd1c0de5f89)
- 添加了让傀儡避开活板门和细雪选项。 (bd66ae8aaa80f98)
- 添加了让村民避开细雪的选项。 (2be62cb9c3611da)
- 添加了“寻路”设置标签页,以便更轻松地找到寻路相关设置。 (9ee5f01241313fa)
- 添加了“村民避开活板门”选项,以防止村民撞开用作装饰性栅栏的打开状态的活板门。 (49735d962fb3238)
- 添加了 "villagerreset"(村民重置)功能,强制村民在当前床附近寻找新的集合点和职业。 (5a3156d3d0511f2)
Bug Fixes
- 修复了 catSpawnLimitRange(猫生成限制范围)实际上未生效的问题。 (a23aa66f64dc917)
- 改进了睡眠任务的判定范围,以实现更准确的寻路。 (7d6c93f33207cfe)
- 修复了村民卡住时不断发出模糊定位请求的问题。 (98553aa05faab8f)
- 改进了寻路时的“卡住”处理机制。 (f326fcdbb0b4007)
- 改进了村民卡住时应用模糊逻辑和传送的处理。 (23cfb5485fc0206)
- 改进了农民收割作物时的逻辑。 (085a894acb1e990)
1.0.6+1.19.3 (2022-12-07)
Features
- 添加了村民和傀儡避开铁轨的支持。默认值为 true。关闭 #33 (a6d6387e6e1369a)
Bug Fixes
- 更好地处理村民互相卡住的情况。卡住 10 秒后尝试使用模糊逻辑移动到新的位置;卡住 100 秒后传送到期望的下一个路径点。 (be64a3735651933)
- 修复了村民和傀儡卡在杜鹃花丛上的问题。 (9b2df1baab7bf24)
- 修复了在集成服务器模式下村民信息界面不显示村民记忆的问题。 (997ffcc88d076bf)
- 修复了村民统计中未翻译的字符串 "baby"。 (ee54c7dce01ddfe)
1.0.5+1.19.2 (2022-12-01)
Bug Fixes
- 移除了控制台调试信息的刷屏输出。 (8f553294b82ce81)
- 进一步改进了村民床铺的寻路逻辑。 (c9561a6cd872c4e)
1.0.4+1.19.2 (2022-11-28)
Features
- 改进村民床铺寻路:在走向床之前检查床是否已被占用。 (414ede405f42425)
- 改进了村民在工作地点的寻路表现。 (c7a51bab4ec76bf)
- 农民现在可以种植和收获西瓜与南瓜。 (b5dfb0fb69cdced)
- 使村民成年所需的时间可配置。 (48081109544c37c)
- 添加了将所有猫变为黑猫的选项,以及无论月相如何都生成黑猫的选项。 (b1a44c8c321608c)
- 在村民统计页面的傀儡列表中添加了傀儡名称。 (d7720d892eee72d)
- 为猫的品种添加了正确的翻译。 (9a2cd65fd51a1db)
Bug Fixes
- 修复了 VillagerInfo 中村民职业翻译的问题。(36fee31bb2f44f6)
- 修复了在即将死亡的村民身上使用 villagerinfo 时导致的崩溃问题。(bc9b31a3e47b6eb)
1.0.3+1.19.2 (2022-11-18)
新功能
- 使用最新更改更新了 README.md。 (a0cce546292fd6c)
- 感谢 Kressety 提供的简体中文翻译。 (49cba31dae407d6)
- 猫选项:配置在哪些半径内生成多少只猫,防止猫消失。 (3be29f707c91af8)
- 添加了限制村民生成的傀儡数量的选项。 (505db7dad670735)
- 在 Villager Stats 中添加了傀儡的数量和位置、猫的数量和变种类型。 (de89c22c2614434)
- 为村民添加了收集和食用西瓜作为食物类型的选项。 (a0de7af2903e9ff)
- 添加了对上传到 CurseForge 的支持,并增强了对上传到 GitHub 的支持。 (8625be72da715dc)
1.0.2+1.19.2 (2022-11-10)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧