Pause Day Cycle

Quick rating

Pause Day Cycle

No reviews yet

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

Mod Loaders
Datapack
Forge
NeoForge
Fabric
Quilt
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.1.1+mod
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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

Screenshots

Gallery

  • Banner image
    Banner image

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~11,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works