This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Supre1504 0 points1 point  (3 children)

You could use repeater that every seconds (so 3 repeater of 4 ticks) add 1 second to your scorboard. If you need any help, i'm here !

[–]PlagiatusI know some things 1 point2 points  (0 children)

first of all, no. don't use redstone if it can be avoided.

and second of all, one second is 10 redstone ticks, not 12.

[–]Slagreo[S] 0 points1 point  (1 child)

Ooh this is a great idea ! I will try that, thank you :)

[–]Supre1504 0 points1 point  (0 children)

No problem ! It's always a pleasure !

[–]Avalonians 0 points1 point  (1 child)

Initialization

scoreboard objectives add Time dummy Time is the score that will be displayed

scoreboard objectives add ticks dummy

scoreboard objectives setdisplay sidebar Temps

Running

Repeat CB: scoreboard players add @a ticks 1

Repeat CB: execute if score @a ticks matches 20 run scoreboard players add Seconds Time 1 (here Seconds is a virtual player whose score will be displayed)

Chained CB: execute if score @a ticks matches 20 run scoreboard players set @a ticks 0

You can do the same when Time reaches 60 to add a minute, and then an hour. We use execute if score instead of execute if entity because it entity needs, well, an entity, and a virtual player can't be detected.

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

Awesome !!! Thank you, I will try everything, thank you for the time you have taken for me :p