Somnus API (Discontinued)
A lightweight library for integrated sleep mechanics on Fabric.
介绍
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.
常见问题
Somnus API (Discontinued) 支持哪些 Minecraft 版本?
Somnus API (Discontinued) 支持 Minecraft Java 版 1.16.4–1.17.1,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Somnus API (Discontinued) 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
TheIllusiveC4 的其他作品
查看全部 →Curios API
一个灵活且可扩展的饰品/装备API,供用户和开发者使用。
Comforts
添加了睡袋和吊床,分别用于便携过夜和昼夜切换,且不会重设出生点。共有16种颜色可选!
Polymorph
不再有配方冲突!当存在多个可用配方时,可选择一个合成结果。
Caelus API
一个核心模组和前置库,让开发者可以通过实体属性访问鞘翅飞行机制。

评论
登录后评论和评分