This is a mod created for Bacon Donut's Haunted Wastelands mod pack.
At the start a player has no home. When a player sleeps in a bed their home is set at that location. This home is not permanent so if they sleep in a different location it will move and reset.
The more nights the player sleeps at a single home the more its homeliness increases. Simply spending time within the home's radius will also increase homeliness but at a much slower rate.
Homeliness works similar to experience. As the players homeliness increases they will gain homeliness levels. The player can view their home stats by looking at a bed or pressing the hud key (unbound by default). Homeliness is displayed as a level and a progress bar similar to xp where the progress bar shows how close they are to the next level.
Once the homeliness reaches a certain threshold the player will be given an option to make the home permanent. At this point the home can not be moved and some additional mechanics activate (more on that later)
Homeliness will be incremented logarithmically (similar to xp levels) Meaning in the beginning its easy to increase homeliness but the the more homeliness increases the slower it increases. Once the player passes the level required to make their home permanent the rate of gain will decrease significantly. This is extended to make it easy for the player to get their home started but this is configurable.
For more information (a lot more) check out the readme on github. https://github.com/brandon3055/HomeSweetHome
You are free to use this mod in any and all mod packs that comply with the minecraft EULA.