Mineuniverse
Data Packs
playtime

playtime

DATA PACK
This is a data pack that displays the player's playtime with several functions.
by chrome_woods
Download Claim this project
447 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Utility
Advertisement Remove ads with Premium →

1. Administrator commands (only with cheats)


You can use these commands for setup and manual time management.

Command    Function

/function pt:setup    Initialization: Creates all scoreboards, sets the status to Start, and activates the display. (Usually executed automatically at startup by load.json).

/function pt:start    Global start: Sets the counter for the entire system to “Active.”

/function pt:stop    Global stop: Pauses the time count for everyone (freezes the scores).

/function pt:add    Admin menu: Opens the clickable chat menu to add hours or minutes.

/scoreboard players set [name] pt_add_min [number]    Manual entry: Adds exactly the specified number of minutes for a player.

/scoreboard players set [name] playtime 0    Reset: Resets the playtime of a specific player completely to zero.

/datapack list    Status check: Shows whether the mod/datapack has been loaded correctly by the game.

 

2. Player commands (without cheats/triggers)

Any player on the server can use these commands, provided you have built the trigger logic into tick.mcfunction.
Command    Function

/trigger pt_trigger_stop    Pause: The player pauses their own time count (or globally, depending on your setup).
/trigger pt_trigger_start    Resume: The player restarts their time count.

 


1. Administrator-Befehle (Nur mit Cheats)


Diese Befehle nutzt du zur Einrichtung und für die manuelle Zeitverwaltung.

Befehl    Funktion

/function pt:setup    Initialisierung: Erstellt alle Scoreboards, setzt den Status auf Start und aktiviert die Anzeige. (Wird durch load.json meist automatisch beim Start ausgeführt).

/function pt:start    Globaler Start: Setzt den Zähler für das gesamte System auf "Aktiv".

/function pt:stop    Globaler Stopp: Pausiert die Zeitzählung für alle (friert die Scores ein).

/function pt:add    Admin-Menü: Öffnet das klickbare Chat-Menü, um Stunden oder Minuten nachzutragen.

/scoreboard players set [Name] pt_add_min [Zahl]    Manuelle Eingabe: Trägt exakt die angegebene Anzahl an Minuten für einen Spieler nach.

/scoreboard players set [Name] playtime 0    Reset: Setzt die Spielzeit eines bestimmten Spielers komplett auf Null zurück.

/datapack list    Status-Check: Zeigt an, ob die Mod/das Datapack vom Spiel korrekt geladen wurde.

 

2. Spieler-Befehle (Ohne Cheats / Trigger)

Diese Befehle kann jeder Spieler auf dem Server nutzen, sofern du die Trigger-Logik in der tick.mcfunction eingebaut hast.
Befehl    Funktion

/trigger pt_trigger_stop    Pausieren: Der Spieler pausiert seine eigene Zeitzählung (oder global, je nach deinem Setup).
/trigger pt_trigger_start    Fortsetzen: Der Spieler startet seine Zeitzählung wieder.

playtime.zip
MC 1.21.8, 1.21.5, 1.21.4, 1.21.1, 1.21.6, 1.21.3, 1.21.7, 1.21.2, 1.21.9, 1.21.10, 1.21.11
Release 2025-12-29 Get
playtime.zip
MC 1.21.1
Release 2025-12-26 Get
playtime.zip
MC 1.21.1
Release 2025-12-26 Get

Requirements & install

How to use this data pack in Minecraft
Mods needed
None, works in vanilla
Minecraft
1.21.4 – 1.21.11
Install folder
saves/<world>/datapacks

How to install data packs

  1. Download the data pack .zip file (do not extract it).
  2. New world: click Data Packs on the world creation screen and drop the .zip in. Existing world: open .minecraft/saves/<world>/datapacks.
  3. Put the .zip into the datapacks folder of the world (servers: world/datapacks).
  4. Run /reload in game (or rejoin the world) and check it with /datapack list.
Browse more: Data Packs for 1.21.11 All data packs
Advertisement Remove ads with Premium →

You Might Also Like