介绍
Time Freeze (Empty Server)
Server-side NeoForge mod for 1.21.1 that pauses day/night and weather whenever the server has zero players online and automatically resumes the moment someone joins.
Features
- Freeze time and weather while empty
- Grace window (configurable) before freezing to avoid flapping during quick reconnects
- Zero client requirements (works with vanilla or modded clients)
- Lightweight, no mixins
Commands
/timefreeze status– shows current state, players online, and config
Configuration
A server config file is generated on first run: config/timefreeze-server.toml
Options:
freezeTime(bool) – lock sun/moon cycle while empty (default:true)freezeWeather(bool) – lock rain/thunder state while empty (default:true)emptyGraceSeconds(int) – wait N seconds after last player leaves before freezing (default:10)
Compatibility
- Mod loader: NeoForge (21.1.x)
- Minecraft: 1.21.1
- Java: 21
- Pure server-side logic; clients do not need this mod installed.
FAQ
Q: Does this stop gamerule doDaylightCycle changes?
A: While the server is empty, the mod re-applies the saved time/weather every tick. Manual time/weather changes will snap back until a player joins.
Q: Any known conflicts?
A: Mods that forcibly advance time or weather each tick might fight with the lock when the server is empty.
I have personally tested this with Serene Seasons with no issues. I will continue to monitor this since I will be using this for my modpacks :).
常见问题
Time Freeze (Empty Server) 支持哪些 Minecraft 版本?
Time Freeze (Empty Server) 支持 Minecraft Java 版 1.21.1–1.21.8,共 2 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Time Freeze (Empty Server) 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
aNinjin 的其他作品
查看全部 →Sleep Persist (Players Sleeping %)
Set the 'playerssleepingpercentage' gamerule to be persistent across restarts.
NARK – Revived
A modpack catered to exploration, building, farming and factories.
Kinetic Origins
A streamlined, shader-ready NeoForge 1.21.1 pack that feels like vanilla—only quicker, prettier, and a little bit smarter.
NARK
A mod pack catered to leveling-up, exploring, and building.
评论
登录后评论和评分