Language

Somnus API

Somnus API

Modrinth

A lightweight library for integrated sleep mechanics on Fabric.

701 downloads 2 followers updated 40mo ago
latest v0.0.14-1.17.1 Modrinth
Fabric 1.16.5 – 1.17.1 Game-mechanicsLibrary

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.

Affiliates

BisectHosting

Versions

Beta
0.0.14-1.17.1
fabric · 1.17.1 · 40mo ago
277
Beta
0.0.12-1.16.5
fabric · 1.16.5 · 40mo ago
424

Comments 0

No comments yet. Be the first to share your thoughts.

Download Somnus API

Files are served directly from the original source. Modgrid does not host or modify them.