Playtime Mod (Fabric)
A lightweight Fabric mod for Minecraft 1.21.X that adds a simple /playtime command to show your total playtime in hh:mm.
Features
- ⏱️ Quick Command:
/playtime displays your total playtime.
- ✅ Vanilla-Accurate: Reads the built-in
Stats.PLAY_TIME stat.
- 🧮 Clean Formatting: Converts ticks → seconds →
hh:mm.
- 🌐 Works Everywhere: Singleplayer and Fabric servers.
- 🧩 Zero Config: No GUI, no mixins, minimal footprint.
Installation
- Install Fabric Loader for Minecraft 1.21.X.
- Download and install Fabric API (for 1.21.X).
- Place the mod JAR into your
mods folder.
- Launch Minecraft with the Fabric profile.
Usage
- In chat, run:
/playtime
- Example output:
Playtime: 12:34
- Available to all players by default.
Compatibility
- Minecraft: 1.21.X
- Loader: Fabric
- Side: Client or Server (command executes on the server)
- Dependencies: Fabric API, Fabric Loader
License
MIT License.