Mineuniverse
Mods
Somnus API (Discontinued)

Somnus API (Discontinued)

MOD
A lightweight library for integrated sleep mechanics on Fabric.
by TheIllusiveC4
Download Claim this project
505,214 downloads
0 likes
Updated Oct 14, 2026
0 hypes
API and Library
Advertisement Remove ads with Premium →

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.

somnus-fabric-0.0.12-1.16.5.jar
MC Fabric, 1.16.5
Beta 2021-08-25 Get
somnus-fabric-0.0.14-1.17.1.jar
MC 1.17.1, Fabric
Beta 2021-08-25 Get
somnus-fabric-0.0.13-1.17.1.jar
MC 1.17.1, Fabric
Beta 2021-08-24 Get
somnus-fabric-0.0.12-1.17.jar
MC 1.17.1, 1.17, Fabric, 1.17-Snapshot
Beta 2021-06-08 Get
somnus-fabric-0.0.11-1.16.5.jar
MC Fabric, 1.16.5
Beta 2021-02-27 Get
somnus-fabric-0.0.10-1.16.4.jar
MC Fabric, 1.16.5, 1.16.4
Beta 2021-01-05 Get

More from TheIllusiveC4

Advertisement Remove ads with Premium →

You Might Also Like