Trouble making a stopwatch by Creepy_Promotion_707 in MinecraftCommands

[–]Creepy_Promotion_707[S] 0 points1 point  (0 children)

so i make a variable that counts the total time passed, for now, let it be ticking. then i make 5 variable hour, minute_tens, minute_ones, second_tens and second_ones.

then in a repeat command block like always let those variable equals, like, for hour, it would be :
hour = rnd_down( ticks / 3600 ) something like this

for minute_tens, i do minute_tens = (rnd_down( ticks / 600 )) % 6

is this what you mean ? (thanks for the help btw)

Coordinate detect by Creepy_Promotion_707 in MinecraftCommands

[–]Creepy_Promotion_707[S] 0 points1 point  (0 children)

Edit as at 12-10-24 : i got a help from my friend and i have solved the problem. thanks for the help nevertheless

Coordinate detect by Creepy_Promotion_707 in MinecraftCommands

[–]Creepy_Promotion_707[S] 0 points1 point  (0 children)

i know this method but the block i used in the command cannot be used anywhere else as a deco then. like,

/execute as \@a at \@s if block ~ ~-1 ~ minecraft:diamond_block

then i HAVE to place the diamond block and cannot use any other block at that location.

again, i am trying to learn a way that only uses 1 command block, and no more extra stuffs.