Somnus API (Discontinued)
Java mod listed for Minecraft 1.16–1.17. Downloads from the MC Java Mods app on Android.
I don't know my version or loader
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.
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.
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.17.1, 1.16.5, 1.17
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on CurseForge — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as somnus-fabric-0.0.14-1.17.1.jar — drop this file into the mods folder
- Download size: 71 KB
- Download link checked 14 Oct 2026 — working
These come from our own check of the pack file, not from the source page.
