
This is a continuation of ExtraCrafTX's BetterSleeping mod, ported to 1.17+ and rewritten for better compatibility and native support for 1.17's new `playersSleepingPercentage` gamerule.
Sleep recovery gives players regeneration for 15s when they have slept through the night. This can be adjusted in the config.
No-sleep debuffs are applied when a player has skipped three nights consecutively without sleeping. The effects get stronger and last longer the more nights the player is awake. This can be enabled or disabled, and the nights before the effect is applied can be configured through the config file as well.
The effects given are:
(Effects and timing are configurable)
Messages are sent when a player sleeps, for skipping nights and for debuffs. These can all be configured as well. Each message can have placeholders that are replaced:
The config file also has a formatting field that is used to format the messages. It is a list and can take the names of any of the standard colours and styles. The Minecraft wiki has a full list.
The config file is found in the config folder and is called `bettersleeping.toml`. This folder should be in the same place as your mods folder (`.minecraft` for Windows). If this file is deleted the mod will recreate it with the default settings at the next start-up. If you're in singleplayer, you can also use the in-game configuration menu (via ModMenu)!