Skip to content

Minecraft 1.20.1, 1.21.1 کے لیے Pause Day Cycle ڈیٹا پیک

اگر کوئی آن لائن نہ ہو یا تمام کھلاڑی AFK ہوں تو گیم کا دن روک دیں۔ چھوٹے SMP سرورز پر مقامی مشکل کو ٹھیک کرتا ہے۔

سے clo4 · Modrinth
سرور پر
ویوز
29 ویوز
اپ ڈیٹ شدہ
اپ ڈیٹ شدہ 03.09.2026

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

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:

  • It integrates with Detect AFK Players, allowing AFK players to also not skyrocket the game time.
  • 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

Pause Day Cycle کیسے انسٹال کریں

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the data pack for Minecraft 1.13–1.21.8 automatically.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. Download the archive

    Pick the file pause-day-cycle+1.1.1+mc1.18.x-1.21.0.zip (199 KB) for your game version.

  2. New world: “Data Packs”

    When creating a world, click “Data Packs”, drag the archive into the window, then move it to “Selected”.

  3. Existing world: the datapacks folder

    Put the archive into saves/<world>/datapacks and type /reload in game.

On a server

  1. Archive goes into the server world’s datapacks

    The world/datapacks folder on the server; players do not need to install anything.

  2. Reload the data

    Type /reload in the server console or restart the server.

  3. Use the “To server” button

    On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

ورژنز

ڈیپنڈنسیز کے ساتھ

Minecraftلوڈرفائلتاریخاقدامات
1.19.2ڈیٹا پیک1.19.2199 KB
1.17.1ڈیٹا پیک1.17.1194 KB
1.15.2ڈیٹا پیک1.15.2194 KB
1.14.4ڈیٹا پیک1.14.4194 KB
1.18.2ڈیٹا پیک1.18.2199 KB—
1.16.5ڈیٹا پیک1.16.5194 KB—

چلانے کے لیے کیا درکار ہے

ریویوز

Pause Day Cycle کو ریٹ کرنے والے پہلے شخص بنیں

کمنٹس 0

کمنٹ کرنے کے لیے سائن ان کریںسائن ان

ملتے جلتے ڈیٹا پیک

تمام ڈیٹا پیک

اس پر مزید

مصنف: clo4لائسنس: MIT

کیا آپ مصنف ہیں؟ ہم سے رابطہ کریں — ہم اسے 48 گھنٹوں میں ہٹا دیں گے۔