A small data pack named TimeTracker will allow you to track your playing time in Minecraft. It will add a small watch face above the quick access bar.
In this data pack, you can independently set the 12- or 24-hour time display format. To accomplish this, enter the commands:
or
How to install TimeTracker data pack
- Download the archive with data pack.
- Open the data packs folder in your save (saves are located at .minecraft/saves).
- Copy the data pack folder there.
- Load your saved game and execute the command /reload.
- Data pack is ready to use (within the chosen save).