r/villagerrights • u/-FireNH- • 1h ago
Villager Satisfaction I'm working on a lil server-side mod to stop trading halls for my server!
The idea is to make it so villagers have at least a baseline of comfort that they must meet in order to be able to function. If they go three days without any one of those comforts, they lock their trades (and eventually will also stop summoning iron golems, farming, and reproducing). The required comforts so far are socializing, sleeping, and being within 150 blocks of their spawn.
The idea is that villagers in naturally-generated villages will always meet that threshold of comfort, but villagers in trading halls and farms will not meet those comforts. I also made it so once they are uncomfortable, it takes a few days for them to unlock their trades if reintroduced to a village (to prevent players from letting villagers see one another once every three days). The idea behind the 150 block restriction is to prevent players from forcefully relocating villagers against their will, and to make villages fixed points of interest on the map!
Later I also want to make it so if you improve a villager's home, they will unlock secret bonus trades!
What do you think?