Mineuniverse
Log in Register
Mods

Somnus API (Discontinued)

A lightweight library for integrated sleep mechanics on Fabric.
by TheIllusiveC4
Claim this project
503,209 downloads
0 likes
Updated Jun 30, 2026
0 hypes

This project is discontinued as of Fabric API 0.39.0+ for 1.16.5 and 1.17.1. Please use the EntitySleepEvents introduced in that Fabric API version instead.

Somnus is a lightweight library that adds a few events for sleeping in Minecraft to allow mod developers easy and compatible ways of implementing their sleep mechanics on Fabric.

BisectHosting

Features

  • Determining the time of day for the world when players wake up
  • Preventing or hooking into sleep attempts
  • Determining valid times of day for sleeping
  • Hooking into when players wake up
  • Changing vertical offsets for sleeping players

Adding to Your Project:

Please refer to the GitHub README file.

Support

Please report all bugs, issues, and feature requests to the issue tracker.

For non-technical support and questions, join the developer's Discord.

License

All source code and assets are licensed under LGPL 3.0.

Donations

Donations to the developer can be sent through Ko-fi.

No files available for download.

More from TheIllusiveC4

Comforts (Fabric 1.16.5 - 1.19.2)
9,613,810
Elytra Slot (Fabric 1.16.1 - 1.19.2)
9,586,403
Charm of Undying (Fabric/Forge/Quilt)
86,527,292
Curios API (Fabric)
858,583
Colytra (Fabric 1.16.1 - 1.19.2)
831,267
Vein Mining (Fabric 1.16.4 - 1.19.2)
7,945,039

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314