Pause Day Cycle
🟠 Updated over a year ago🖼️ Gallery (1 images)
🔍 Analysis
- 👍 0.1% endorsement rate
- 🏆 #732 of 1805 datapack mods in this game by downloads
📋 About This Mod
# Pause Day Cycle **To enable AFK detection feature, (https://modrinth.com/datapack/detect-afk) 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. <details> <summary>See it in action</summary> !(https://github.com/clo4/datapacks/blob/main/pause-day-cycle/sunset_afk.gif?raw=true) Time pauses while player is AFK. Player sitting done with (https://modrinth.com/datapack/afk-sit). </details> ## 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 (https://modrinth.com/datapack/detect-afk)) 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 ```json { "values": } ``` ###### announce/data/announce/functions/pause.mcfunction ```mcfunction say Day cycle has been paused ```
# Pause Day Cycle
To enable AFK detection feature, (https://modrinth.com/datapack/detect-afk) 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
!(https://github.com/clo4/datapacks/blob/main/pause-day-cycle/sunset_afk.gif?raw=true)
Time pauses while player is AFK. Player sitting done with (https://modrinth.com/datapack/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.
When nobody is online or all online players are tagged as `afk` (see (https://modrinth.com/datapack/detect-afk)) 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.
## 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
```json { "values": ["announce:pause"] } ```
###### announce/data/announce/functions/pause.mcfunction
```mcfunction say Day cycle has been paused ```
📊 Mod Details
- Game
- Minecraft Data Packs
- Author
- clo4
- Version
- 1.1.1
- Downloads
- 16,907
- Endorsements
- 24
- Category
- datapack
- Created
- 8/8/2023
- Updated
- 3/30/2025
- Game Versions
- 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1
- Tags
- game-mechanics, management, utility
🔧 How to Install Minecraft Data Packs Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Data Packs →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Data Packs versions does Pause Day Cycle support?
The author lists 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2. Other versions may work but are untested by the author.
What is the latest version of Pause Day Cycle?
Version 1.1.1, published 2025-03-30 with 16,907 downloads recorded at the source.
Keep browsing — more Minecraft Data Packs mods await
