Insomnia
This mod significantly restricts the ability to use beds for sleeping in the game. When attempting to lie in a bed, one of random messages appears, the selection of which depends on the world seed, bed location, and current day count.
Key feature: You can still set respawn points using beds, but the actual sleeping process may be completely blocked depending on the settings of the specific message.
Technical capabilities:
The mod supports full server-side operation without client installation - for this, it's sufficient to provide the necessary translations through a resource pack.
For modpack creators:
The configuration file is located at data/insomnia/keys.json and has the format of a JSON object, where each translation key corresponds to a boolean value determining whether this message blocks sleep.
Example structure:
{
"translation_key": "true",
"allowed_sleep": "false"
}
Message translation is handled through Minecraft's standard localization files. Default phrases can be replaced with custom versions or completely disabled by setting the appropriate values in the configuration file.