promotional bannermobile promotional banner
premium banner
A simple mod that adds a /playtime command

Description

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

  1. Install Fabric Loader for Minecraft 1.21.X.
  2. Download and install Fabric API (for 1.21.X).
  3. Place the mod JAR into your mods folder.
  4. 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.