Stoneholm, Underground Villages (Fabric) Mod 1.18.1/1.17.1/1.16.5 allows villagers in the game to settle underground in a few kinds of inhabited Stronghold. Open the mod and see how you can use it!

Stoneholm, Underground Villages
This is the Fabric version of Stoneholm, Underground Villages. If you love your towns, you should try it out.
Main features
It lets everybody live in dark areas in some sort of resident Stronghold.
It adds numerous sprawling mazes of underground halls with floors.
Players can travel around those corridors and discover by themselves when moving into abandoned places for loot.
Change the location into your own house
Feasible to build yours above it to trap and even kidnap a couple of persons forever
Stoneholm, Underground Villages (Fabric) is a Minecraft mod that has brought back many strange structures. It will require you to download and install Fabric API with Fabric Modloader, Minecraft 1.16.2+, and Cloth Config (4.11.15+). They’re essential to kick it off.
Screenshots