Offline Daylight Stop
Offline Daylight Stop 是一款适用于 Minecraft 1.20.1 的 Fabric 模组。
功能特性
Offline Daylight Stop 会在服务器没有玩家在线时暂停 Minecraft 的光照周期。
该模组极其轻量(仅包含一个 Java 文件),自身功能简单,但在使用如 Fabric Seasons 等其他模组时能增强沉浸感。
工作原理
- 当服务器在线玩家数为 0 时,会启动一个计时器。计时器结束后,
doDaylightCycle 游戏规则将被设置为 false。
- 当有玩家连接时,
doDaylightCycle 游戏规则将被设置为 true。
计时器设置为游戏内 12 到 24 小时之间的随机值(对应现实时间分别为 10 到 20 分钟)。这个短暂的时间窗口保留了每次加入服务器时时间不同的惊喜感,并允许天气等变化发生。
显然,此模组旨在用于不会随意更改 doDaylightCycle 游戏规则的服务端生存服务器。
Offline Daylight Stop 是一款 Fabric 模组,专为 Fabric 加载器开发。LGPL 许可证意味着您可以自由地将 Offline Daylight Stop 移植到其他模组加载器(如 NeoForge)。
构建版本可在 Modrinth 或 GitHub 仓库中找到。
客户端 / 服务端
Offline Daylight Stop 是一个服务端模组。它无需安装在客户端即可正常工作。
依赖项
Minecraft 版本: 1.20.1
| 名称 |
版本 |
Modrinth 页面 |
GitHub 仓库 |
客户端/服务端 |
| Fabric API |
0.85.0+ |
链接 |
链接 |
服务端 |
作者
Lafolie - 开发者。
许可协议
Offline Daylight Stop 采用 GNU Lesser General Public License v3 许可。
Offline Daylight Stop
Offline Daylight Stop is a Fabric mod for Minecraft 1.20.1
Features
Offline Daylight Stop pauses Minecraft's Daylight cycle while there are no players on the server.
This mod is extremely lightweight (a single Java file), and does little by itself, but enhances immersion when using other mods such as Fabric Seasons.
How it works
- When the server has 0 players online, a timer is started. Once the timer expires, the
doDaylightCycle gamerule is set to false.
- When a player connects, the
doDaylightCycle gamerule is set to true.
The timer is set to a random value between 12 and 24 in-game hours (10 and 20 minutes in real time, respectively). This small time window keeps the little surprise of the time of day being different each time you join intact, and allows some time for things like weather to pass.
Obviously, this mod is intended for use on Survival servers that do not toy with the doDaylightCycle gamerule.
Offline Daylight Stop is a Fabric Mod and is developed exclusively for the Fabric mod loader. The LGPL license means that you are free to port Offline Daylight Stop to another mod loader, such as NeoForge.
Builds can be found on Modrinth, or the github repo.
Client / Server
Offline Daylight Stop is a server-side mod. It does not need to be installed on clients to work.
Dependencies
Minecraft version: 1.20.1
| Name |
Version |
Modrinth Page |
GitHub Repository |
Client/Server |
| Fabric API |
0.85.0+ |
link |
link |
Server |
Authors
Lafolie - developer.
License
Offline Daylight Stop is licensed under the GNU Lesser General Public License v3.
评论 0
登录后参与评分
还没有评论,来抢沙发吧