Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Creators
Details

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
- Villager comfort levels are updated when opening the trade menu with them, and when they sleep. This can sometimes result in some oddities, where comfort values may seem off. If you experience this, please wait an in-game day before checking their stats again.
- If you encounter any other issues, please leave a report on this mod's GitHub page!
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.



