Description
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 :).


