promotional bannermobile promotional banner

playtime

This is a data pack that displays the player's playtime with several functions.

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.

The playtime Team

profile avatar
  • 4
    Projects
  • 1.1K
    Downloads

More from chrome_woods

  • Playtime advertisement project image

    Playtime advertisement

    • 162
    • Mods

    This is a mod that displays the player's playing time in days, hours, minutes, and seconds.

    • 162
    • December 29, 2025
    • Mods
  • TheGameII project image

    TheGameII

    • 159
    • Modpacks

    Modpack with Questbook to help with all the mods and a lot of other content

    • 159
    • October 6, 2024
    • Modpacks
    • +4
  • TheGame project image

    TheGame

    • 475
    • Modpacks

    Modpack with quest book that leads through many mods, which is also suitable for beginners.

    • 475
    • October 19, 2023
    • Modpacks
    • +1
  • Playtime advertisement project image

    Playtime advertisement

    • 162
    • Mods

    This is a mod that displays the player's playing time in days, hours, minutes, and seconds.

    • 162
    • December 29, 2025
    • Mods
  • TheGameII project image

    TheGameII

    • 159
    • Modpacks

    Modpack with Questbook to help with all the mods and a lot of other content

    • 159
    • October 6, 2024
    • Modpacks
    • +4
  • TheGame project image

    TheGame

    • 475
    • Modpacks

    Modpack with quest book that leads through many mods, which is also suitable for beginners.

    • 475
    • October 19, 2023
    • Modpacks
    • +1