All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Villager Comfort Continued

Villager Comfort Continued

by elleoellie • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

The text "villger comfort" in the Minecraft font, atop the spruce planks texture. Beneath it is theNeoforged logo.

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.

A gif of the player right-clicking on a villager, seeing their increased prices, and then right-clicking again with a sheet of paper to view the villager's 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.

How to Install Villager Comfort Continued (Mod)

Villager Comfort Continued by elleoellie is verified for Neoforge across Minecraft versions 1.21.1 (latest release: 1.1.0, file size: 952 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21.1) and platform (Neoforge).
  2. Make sure you have the compatible loader or environment installed for Neoforge.
  3. Move the downloaded Villager Comfort Continued file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Neoforge
8mo ago 1
1.21.1
Neoforge
9mo ago 1
_**NOTE: PLEASE DELETE OLD CONFIGS BEFORE UPDATING!**_
### New Features
+ Added a brand new menu for viewing villager comfort levels! This replaces the previous "print to chat" method. You can view each villager's comfort and any specific problems they may have. Future updates will further enhance this feature, but it's much nicer than the 1.0 release already :)
+ The mod now supports translations! Currently includes en_us and de_de support.
+ Changed the config to be server side, as all the values are server-specific.
+ Config values can now be edited in-game via Neoforge's built in config screen.


### Fixes
  • Fixed an issue causing config values to generate lower than intended.
  • Fixed an issue where viewing a villager's stats would cause trade prices to briefly fluctuate afterwards.
Initial release!

+ Ported to 1.21.1
+ Ported from Forge to Neoforge
+ Added a way to view villager Comfort Values. Right-clicking a villager while holding Paper will output its current values to chat. This will be replaced with a much prettier menu in a future version, but it's functional for now.
Villager Comfort Continued Icon
Download Villager Comfort Continued
Select game version
Select platform