MonitoringMinecraft MonitoringMinecraft

Get SysTime

Датапак Datapack

Датапак для Майнкрафт: показывает системное время прямо в игре.

135 скачиваний 1 подписчик
Оцените первым

GetSysTime

Bring the real-world clock into Minecraft commands.

GetSysTime is a server-side data pack that reads the local time from the machine running your world and exposes the hour, minute, and second through a scoreboard and command storage. Use it to build clocks, scheduled events, daily rewards, time-based mechanics, or anything else that needs the real time of day.

No mod or resource pack is required.

Features

  • Retrieves the current system time on demand
  • Provides the hour, minute, and second as easy-to-use scoreboard values
  • Also exposes the time through command storage on supported versions
  • Works in single-player and on dedicated servers
  • Includes setup checks and a complete uninstall function
  • Supports Minecraft Java Edition snapshots from 23w03a onward

On a dedicated server, GetSysTime reads the server host's clock and time zone, not each player's local time.

Installation

  1. Download the version of GetSysTime that matches your Minecraft version.
  2. Place the downloaded .zip file in your world's datapacks folder.
  3. Join the world or run /reload if it is already open.
  4. Stand in a safe location inside an always-loaded chunk, preferably near the world spawn, then run:
/function getsystime:set

The setup function places a repeating command block at your position and a marker inside it. The block at that position will be replaced. Running the setup function again safely replaces the previous GetSysTime installation.

Dedicated servers must have command blocks enabled in server.properties:

enable-command-block=true

Usage

Whenever you need the current time, run:

/function getsystime:get

The following fake players in the GetSysTime objective are updated with numeric values:

Score holder Value
$Hour Current hour
$Minute Current minute
$Second Current second

For example, you can read them directly with:

/scoreboard players get $Hour GetSysTime
/scoreboard players get $Minute GetSysTime
/scoreboard players get $Second GetSysTime

Or display the objective while testing:

/scoreboard objectives setdisplay sidebar GetSysTime

The raw time is also available at getsystime:values input. On snapshot 23w31a and newer, the individual time fields are stored under getsystime:values time as well.

GetSysTime updates these values only when getsystime:get is called, so other data packs can decide how often they need to refresh the time.

Uninstallation

Before deleting the data pack, run:

/function getsystime:uninstall

This removes the command block, marker, scoreboard objective, and storage data created by GetSysTime. You can then remove the .zip file from the world's datapacks folder.

Important notes

  • GetSysTime uses a command block's timestamp to read the host system time, so the setup chunk must remain loaded.
  • The setup function enables the sendCommandFeedback game rule, which is required for the system to work.
  • Commands require cheats in single-player or a sufficient permission level on a server.
  • For Minecraft versions older than 23w03a, see the legacy version on Planet Minecraft.

Credits and license

Created by EclairDeFeu360.

GetSysTime is licensed under CC BY-SA 4.0. By downloading the data pack, you agree to its license.

Support the creator

Смотри также

Похожие подборки датапаки — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

Battle Mine
Battle Mine Java + BE
3 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
ReallyWorld КОПИЯ ВСЕМ АДМИНКА
7 онлайн
1.16.5 — 1.21.1 версия
ПвП, Гриферство, бесплатный донат Dragon, AIR DROP
EnergyMC
7 онлайн
1.20.5 — 26.2 версия
🔥 Гибрид | ⚔️ Кланы | 🏰 Рейды | 🤺 Дуэли
Minestory
1 онлайн
1.21 — 26.2 версия
Выживание • Экономика • Кланы • Приваты • Ивенты • PVP • Работа
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.4. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат