
Villager Comfort 会根据村民的生活质量来调整其交易价格。你对待他们越好,交易就越便宜;他们的生活越糟糕,价格就越高!这个模组的理念是鼓励玩家真正为村民 建造 一个村庄,而不是把他们塞进 1x1 的小格子里就完事。
该模组考虑了多种不同的生活质量因素:村民的卧室、工作场所以及他们可能面临的问题。这些数值会被综合计算出一个整体的舒适度等级,从而决定价格的增减幅度。
此外,该模组还高度可配置!你可以调整舒适度系统对价格的影响程度、期望的房屋大小、工作站大小等。通过修改配置文件中的值,大多数品质因素都可以被禁用甚至反转。例如,如果你正在制作一个受到辐射影响的超世界整合包,可以让村民在无法外出时感到更快乐!
卧室与工作场所
村民需要在夜间有地方睡觉!他们更喜欢宽敞且私密的卧室。当然,他们也希望房间光线充足,以驱赶怪物!这一原则同样适用于他们的工作场所,尽管他们对与其他村民共享工作场所的接受度较高。
值得注意的是,如果将村民的工作站方块放在与床相同的房间内,或者离床太近,都会降低他们的舒适度!毕竟,工作与生活的平衡很重要,你知道吧。
问题
村民可能会面临各种扰乱其生活的问题。让村民被敌对生物(如僵尸、掠夺者等)追逐、将他们困在室内、以及无法入睡,都会导致村民舒适度下降。
所有这些数值都可以通过使用特定物品右键点击村民来查看。默认情况下,此物品是纸张,但可以通过数据包进行更改。这样做会弹出一个精美的界面,展示村民的整体舒适度统计信息。

致谢
本模组最初由 ghenghen_ 创建,随后由 leahx_y2k 移植到 [1.20.1]。我是这个模组的大粉丝,非常希望它在 1.21 中也能可用。由于它采用 MIT 许可证,我自学了 Java 并决定亲自移植它!感谢 ghenghen_ 和 leahx_y2k 所做的工作。
特别感谢 Kaupenjoe 提供的 Java 和 Minecraft 模组教程,vertexcubed 提供的一些底层代码使得菜单/屏幕创建变得极其简单,以及 Neoforged Discord 服务器上的热心用户们。
未来更新计划
- 目前只有价格受村民舒适度影响。我希望提供选项让它也能影响库存物品、补货速度等。
- 添加一种方式为村民分配特定的床铺。
- 让村民关心房屋是由什么材料建造的(例如:地毯和装饰品会增加舒适度;用泥土建造房屋会降低舒适度)。
- 独特的特质系统(有些村民喜欢猫,有些希望与其他村民保持距离等)。
- 将模组更新到未来的版本(26.1?)。
已知问题
兼容性
本模组应与大多数其他模组兼容,包括那些添加新村庄生物群系、村庄职业等的模组。我强烈建议添加一个赋予村民独特名称的模组!
舒适度系统将不适用于 Ribbit 或 Kobolds 等模组添加的新 NPC,但如果有人对此感兴趣,我可以考虑将它们纳入其中。

Villager Comfort raises and lowers the price of villager trades depending on the quality of their lifestyle. The better you treat them, the cheaper the trades. The worse life they have, the more it'll cost! The idea is to encourage the player to actually build a village for villagers, rather than stuffing them in 1x1 holes and calling it a day.
This mod takes into account a number of different qualities: a villager's bedroom, their workplace, and general problems they may be facing. These values are combined to calculate the overall comfort level, which determines the price increase/decrease you receive.
It is also highly configurable! You can alter how much the comfort system impacts prices, the desired house size, desired workstation size, and so on. By messing with config values, most qualities can be disabled or even inverted. Maybe you're making a pack with an irradiated overworld; make it so that villagers are happier when they're unable to go outside!
Bedrooms & Workplaces.
Villagers need a place to sleep at night! They prefer spatious and private bedrooms. Naturally they also want it to be well-lit, to keep mobs away! The same idea applies to their workplace, although they're more okay sharing a workplace with other villaers.
Notably, putting a villager's workstation block in the same room as their bed, or too close to it, will make them less comfortable! Work-life balance is important, you know.
Problems
Villagers may face a number of problems that disrupt their life. Letting a villager be chased by hostile mobs (zombies, pillagers, etc.), keeping them trapped inside, and being unable to sleep will all make a villager less comfortable.
All of these values can be viewed by right-clicking on a villager with a specific item. By default, this item is paper, but this can be changed via data packs. Doing so pulls up a fancy screen showcasing the villager's overall comfort stats.

Credits
This mod was originally created by ghenghen_, and then ported to 1.20.1 by leahx_y2k. I was a big fan of this mod and really wanted it in 1.21. Since it's under a MIT license, I taught myself Java and decided to port it myself! Thank you to both ghenghen_ and leahx_y2k for your work.
Additional thanks to Kaupenjoe for his Java and Minecraft moding tutorials, vertexcubed for some underlying code to make menu/screen creation far, far easier, and the helpful users on the Neoforged discord server.
Future Updates
- Currently only prices are impacted by villager comfort. I'd like to provide options for it to impact the items stocked, restock speed, etc.
- Add a way to assign villagers to particular beds.
- Make villagers care about what their house is made of (i.e.: carpets and decorations will boost comfort; building their house out of dirt will reduce it).
- Unique trait system (some villagers like cats, some want to be further from other villagers, etc.).
- Update the mod to future versions (26.1?).
Known Issues
Compatability
This mod should be compatible with most other mods, including mods that add new village biomes, village careers, and so on. I highly reccomend adding a mod that gives villagers unique names!
The comfort system will not apply to new NPCs added by mods like Ribbit or Kobolds, but if there's interest for it I can see about including them.
评论 0
登录后参与评分
还没有评论,来抢沙发吧