Villager Comfort

Villager Comfort

2.5k Downloads

 

Villager comfort is a lightweight mod that makes villagers price their trades based on how comfy is their lifestyle. This is in an effort to discourage building narrow trading halls with no daylight access and no place for villagers to walk around and meet each other, and instead reward the player for building a bigger and safer village, which makes villagers comfier, thus lowering trade prices.

 

☕ Comfort

Trades

Villagers' comfort levels will change the prices of all their trades, much like when they are cured from a zombie state in vanilla. By default, if a villager is extremely uncomfortable, their prices could go as high as almost a stack of emeralds. However, if they are very comfortable, they could fall down to just a couple of emeralds. This scales with base prices, so even if the original cost were to be 50 emeralds, it could still go as low as just a couple. This behavior can be configured.

Bedroom

Having a place to rest is surely one of the first steps, and in fact, a villager will quickly get discomfort if they aren't able to sleep. Having a bigger bedroom is relevant as well, and so is the number of other villagers that sleep in the same room (having more privacy will make a villager comfier). Other factors are the level of natural light in the room (brought by including windows) and whether the villager's workstation is in the same room as their bed. The distance between these two is also relevant, and a villager will be more comfortable with their bedroom and workplace more spaced apart.

Workplace

The workplace shares many of the same guidelines as the bedroom, so more spacious, brighter, and less cramped workspaces will make a villager comfier.

 

Life tenor

A villager's comfort will also lower if they can't spend at least a minute outside during the day, or if they aren't able to rest for multiple nights. By contrast, a villager will get progressively more and more comfortable the more days pass without getting attacked by monsters.


Config

Every variable of those listed above is completely configurable, even outside the bounds of logic, if desired.

This mod is extremely early in development, so it's probably filled with bugs.

Feel free to leave reports or feature suggestions in the comments and GitHub page