Pause Day Cycle

Pause Day Cycle

Pause the in-game day if nobody's online or when all players are AFK. Fixes local difficulty on small SMP servers.

by
12.5K Downloads
datapackfabricforgeneoforgequiltgame-mechanicsmanagementutility
Rent Server with this Mod

Screenshots

Banner image

About this Mod

Pause Day Cycle

To enable AFK detection feature, Detect AFK Players must be installed.

When nobody's on a Minecraft server, the in-game time still increases. This means you can't track the number of days played, and the local difficulty will also increase. That's not a concern for servers that have players online almost constantly, but for small/medium sized servers, this is a problem.

This is a very light-weight data pack to prevent game time from increasing when nobody's online or when every player online is tagged as afk, without pausing the server itself so that automatic farms can continue to run.

See it in action

Day pauses while player is AFK

Time pauses while player is AFK. Player sitting done with AFK Sit.

Why another one of these?

There are already a few mods and data packs that do the same thing as this one, but none of them did quite what I need:

  1. It integrates with Detect AFK Players, allowing AFK players to also not skyrocket the game time.
  2. It's easy to integrate with other datapacks so that the pause/unpause doesn't break.

Details

When nobody is online or all online players are tagged as afk (see Detect AFK Players) the following gamerules will be set to false:

  • doDaylightCycle
  • doWeatherCycle

doMobSpawning is not changed because it allows automatic farms in spawn chunks or manually loaded chunks to function with nobody present.

Note: If one of the gamerules is already set to false while the time isn't paused, that gamerule will not be changed - this pack respects your options!

Extending it

This datapack provides two function tags: pause_day_cycle:pause and pause_day_cycle:resume. These will be called when the day cycle is paused and resumed. Below is an extremely simple example of an add-on data pack that uses these tags to log to the server when the day cycle is paused.

announce/data/pause_day_cycle/tags/functions/pause.json
{ "values": ["announce:pause"] }
announce/data/announce/functions/pause.mcfunction
say Day cycle has been paused

Available Versions

Version 1.1.1release
MC 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8fabric, forge, neoforge, quilt
March 30, 2025
Version 1.1.1release
MC 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8datapack
June 17, 2024
v1.1release
MC 1.13, 1.13.1, 1.13.2, 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15, 1.15.1, 1.15.2, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4datapack
February 28, 2024
Pause Day Cycle v1.0.0release
MC 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4datapack
August 2, 2023

How to Install Pause Day Cycle on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set datapack Loader

In the panel under "Egg", select the datapack loader and matching Minecraft version (1.21.8).

3

Install Mod

Open the mod browser in the dashboard and search for "Pause Day Cycle". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

datapackfabricforgeneoforgequilt

Minecraft Versions

1.21.8, 1.21.7, 1.21.6 (+40 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Pause Day Cycle server crashes on startup – what to do?

Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.8). You can switch loaders with one click in the panel.

Is Pause Day Cycle compatible with datapack and fabric and forge and neoforge and quilt?

Pause Day Cycle officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 1.21.8, 1.21.7, 1.21.6. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Pause Day Cycle – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Pause Day Cycle consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Pause Day Cycle with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.81.21.71.21.61.21.51.21.41.21.31.21.21.21.11.211.20.6+33 more