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

评论
登录后评论和评分