SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
✓ VerifiedQuality of life & UI

Pause Day Cycle

by clo4 · for Minecraft

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

18KDownloads
18 mo agoLast updated
MITLicense
Data pack · Fabric +3Loaders

About Pause Day Cycle

From Modrinth

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

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.

Even with the introduction of the server property pause-when-empty-seconds, the issue of AFK players increasing game time is not solved, and spawn chunks will not be ticked while paused, which you may or may not want.

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

Highlights

From source data

Game versions

Supports 43 Minecraft versions, the newest being 1.21.8.

Loaders

Runs on Data pack, Fabric, Forge, NeoForge and Quilt.

Footprint

Rated a light load on a server.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Quality of life & UI

Small conveniences, tweaks and interface improvements players notice straight away.

Runs on your server

From source side support

Modrinth lists Pause Day Cycle as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
Data packFabricForgeNeoForgeQuilt
Runs on
Serverrequired on the server
Game versions
1.21.8 and 42 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓Authorclo4, as published on Modrinth
  • ✓LicenseMITFree

Pause Day Cycle, answered

Generated from the mod’s own source data.

Do my players need to install Pause Day Cycle?

Modrinth lists Pause Day Cycle as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Data pack, Fabric, Forge, NeoForge and Quilt.

Is it free?

Yes. Pause Day Cycle is free to download from Modrinth. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Pause Day Cycle on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add Pause Day Cycle in one click.