#How do I make the Scoreboard Numbers to show 0 before a single digit? [Solved]

1 messages · Page 1 of 1 (latest)

winter lake
#

So, I'm making a Timer in the MM:SS Format. When the times are single digits, they show up like 7:2, but I want them to show up as 07:02. How can I do that? Please help.

burnt terrace
#

So, you'd need to do different commands based on what their scoreboard value is

#

Use a scores target selector filter in the @a

terse carbon
#
titleraw @a[scores={m=..9,s=10..}] actionbar {"rawtext":[{"text":"0"},{"score":{"name":"*","objective":"m"}},{"text":":"},{"score":{"name":"*","objective":"s"}}]}
#
titleraw @a[scores={m=..9,s=..9}] actionbar {"rawtext":[{"text":"0"},{""score":{"name":"*","objective":"m"}},{"text":":0"},{"score":{"name":"*","objective":"s"}}]}
#
titleraw @a[scores={m=10..,s=..9}] actionbar {"rawtext":[{"score":{"name":"*","objective":"m"}},{"text":":0"},{"score":{"name":"*","objective":"s"}}]}
tall laurel
#

e

winter lake
#

How do I make the Scoreboard Numbers to show 0 before a single digit? [Solved]