promotional bannermobile promotional banner

Time Freeze (Empty Server)

Pauses day/night and weather when the server is empty.

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

The Time Freeze (Empty Server) Team

profile avatar
Owner
  • 6
    Projects
  • 10.1K
    Downloads

More from aNinjinView all

  • Kinetic Origins project image

    Kinetic Origins

    • 1.9K
    • Modpacks

    A streamlined, shader-ready NeoForge 1.21.1 pack that feels like vanilla—only quicker, prettier, and a little bit smarter.

    • 1.9K
    • September 20, 2025
    • Modpacks
    • +2
  • Sleep Persist (Players Sleeping %) project image

    Sleep Persist (Players Sleeping %)

    • 2.9K
    • Mods

    Set the 'playerssleepingpercentage' gamerule to be persistent across restarts.

    • 2.9K
    • August 18, 2025
    • Mods
    • +1
  • AllyCraft: ROG Edition project image

    AllyCraft: ROG Edition

    • 982
    • Modpacks

    A modpack built around being compatible with the Asus ROG Ally with small additions to Vanilla minecraft. This modpack has roughly 100 mods with the majority of them being performance based.

    • 982
    • December 17, 2024
    • Modpacks
    • +1
  • NARK - Revived project image

    NARK - Revived

    • 2.0K
    • Modpacks

    A modpack catered to exploration, building, farming and factories.

    • 2.0K
    • April 17, 2024
    • Modpacks
    • +3
  • Kinetic Origins project image

    Kinetic Origins

    • 1.9K
    • Modpacks

    A streamlined, shader-ready NeoForge 1.21.1 pack that feels like vanilla—only quicker, prettier, and a little bit smarter.

    • 1.9K
    • September 20, 2025
    • Modpacks
    • +2
  • Sleep Persist (Players Sleeping %) project image

    Sleep Persist (Players Sleeping %)

    • 2.9K
    • Mods

    Set the 'playerssleepingpercentage' gamerule to be persistent across restarts.

    • 2.9K
    • August 18, 2025
    • Mods
    • +1
  • AllyCraft: ROG Edition project image

    AllyCraft: ROG Edition

    • 982
    • Modpacks

    A modpack built around being compatible with the Asus ROG Ally with small additions to Vanilla minecraft. This modpack has roughly 100 mods with the majority of them being performance based.

    • 982
    • December 17, 2024
    • Modpacks
    • +1
  • NARK - Revived project image

    NARK - Revived

    • 2.0K
    • Modpacks

    A modpack catered to exploration, building, farming and factories.

    • 2.0K
    • April 17, 2024
    • Modpacks
    • +3