HomeJavaDatapacksPlaytime counter
Playtime counter
DatapacksJava

Playtime counter

by DJjougo · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Data pack only.

⬇ Download for 1.21.7–26.1.2⬇ Download for 1.21.6⬇ Download for 1.21.2–1.21.5⬇ Download for 1.21–1.21.1
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Playtime counter — screenshot 1

Playtime Tracker This utility is a lightweight, lag-free solution for monitoring player activity. It converts raw game ticks into a readable format without requiring a permanent, clunky scoreboard on the side of your screen.

Players can use these /trigger commands without needing operator (OP) permissions:

/trigger pt_show: This displays the player's Total World Playtime (Hours, Minutes, and Seconds) directly in the chat. It pulls data from the engine-level statistics, so it includes time spent before the datapack was installed.

/trigger pt_on: This enables a persistent Hotbar Display. The playtime will appear and update in real-time right above the player's item bar.

/trigger pt_off: This disables the hotbar display and clears the text from the screen if a player prefers a clean UI.

How to Install/Download the File: Ensure you have the Playtime_Datapack_Fixed_V2.zip ready.Navigate to Save Folder: Open your Minecraft directory, go to saves, and select your specific world folder.

Drop in Datapacks: Open the datapacks folder and move the ZIP file inside.Reload the

How to UseThe Command: To see your current time, simply type: /trigger pt_show. The Display: You will see a private chat message formatted as: Your total playtime: 1h 12m 30s.

Caution: This datapack will only show the playtime from the amount of time you have installed this datapack

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more