TransWikia.com

Is it possible to make a “hot bar timer”?

Arqade Asked by Unknown_User001 on November 14, 2020

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.

2 Answers

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

Answered by Winfinity on November 14, 2020

Here is an extremely easy way to do it that looks natural: The XP Bar. Basically you use the /xp command:
/xp 120l @a
Then have a repeating command block and set the tick delay to 20. In that put the command /xp -1l @a That will now take one xp level from every player. Then if you want to test when it hits 0 you can either have a scoreboard system run alongside it OR have a block testing for /testfor @a[l=0] and when that is true the timer has reached 0.

Answered by Penguin on November 14, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP