Is it possible to make a hot bar timer while only using minimal resources and command blocks? If so, how would you do it? My aim here is for a compact, and precise timer above your hot bar that you could use in a sort of mini game.

Note: this should be as efficient as possible and be displayed analog style, as well as having milliseconds(if possible and to not created lag), seconds and minute positions. This also utilizes the \title command.

  • 1
    Do you mean a timer using the experience bar? It’s definitely possible with the xp command, just mess around with levels and values until it looks right. – Sam Hill Jul 19 at 3:59

Using consistent /title actionbar "Minute:Second" and some repeaters I think so. A human second is 20 in-game ticks.

| improve this answer | |
  • 1
    Actually, a second is 20 game ticks, not 2. – ExpertCoder14 Jul 28 at 0:54
  • @ExpertCoder14 Thanks for the clarification. As I said that was only an estimate so I'll edit the comment now. – Winfinity Jul 28 at 0:57
  • 1
    Great, thanks. You might want to clarify that you need to run the command multiple times, one for each display, and clarify to replace Timer here with something. Right now, I had to think about it a little bit to understand these details. – ExpertCoder14 Jul 28 at 1:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.