Somnus API (Discontinued) Mod 1.16.4–1.17.1
MODSomnus API is a discontinued lightweight library for Minecraft mod developers. Its specific purpose was to provide events related to sleeping, enabling easier and compatible implementation of sleep mechanics on Fabric. This project offered features such as determining the world's time of day upon waking, preventing or hooking into sleep attempts, defining valid sleep times, reacting to players waking up, and altering vertical offsets for sleeping players.
Somnus API is a discontinued lightweight library for Minecraft mod developers. Its specific purpose was to provide events related to sleeping, enabling easier and compatible implementation of sleep mechanics on Fabric. This project offered features such as determining the world's time of day upon waking, preventing or hooking into sleep attempts, defining valid sleep times, reacting to players waking up, and altering vertical offsets for sleeping players.
As of Fabric API 0.39.0+ for versions 1.16.5 and 1.17.1, Somnus API is discontinued. The source explicitly states that users should utilize the EntitySleepEvents introduced in those Fabric API versions instead. The project's source code and assets are licensed under LGPL 3.0.
