Skip to content

TheIllusiveC4/Somnus

Repository files navigation

Somnus API License: LGPL v3

Overview

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.

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:

Add the following to your build.gradle file:

repositories {
    maven {
        url = "https://maven.theillusivec4.top"
    }
}

dependencies {
    modImplementation "top.theillusivec4.somnus:somnus-fabric:${version}"
}

Replace ${version} with the version of Somnus that you want to use.

Downloads

CurseForge

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.

About

A lightweight library for integrated sleep mechanics on Fabric.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages