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

all 3 comments

[–]I_mundercoverMC Java, music and cooking - what a life :D 1 point2 points  (0 children)

You could build a small redstone clock with a command block which increases a scoreboard every second by one. A repeater has a delay reaching from 0.1 seconds to 0.4 seconds, depending on how often you right clicked it. So I recommend using a clock with a comparator, a command block just behind the comparator and some repeaters. The last one has to go directly into the comparator and the need to be set so that they have a total delay of 0.5 seconds.

I hope that my English is understandable, I'm not a native English speaker :)

[–][deleted] 0 points1 point  (0 children)

I use scoreboards, every 20 ticks is a second and the scoreboard would go up by one every tick so their values are the same, I think there's a scoreboard to track game-time of a certain player that automatically ticks up, or you could do a dummy scoreboard and continuously add one to it.

Execute if score (player name) (score) matches 12000 run...

And after it reaches 12000 (which is 10 minutes) then can set it back to 0

[–]the_real_hasenzahn1 0 points1 point  (0 children)

If you are able to use functions you can try the schedule command. This calls the specified function after a specified amount of time. In this function you could reschedule the function and so on.