Hi, i am creating a scoreboard in win 10 bedrock on a realm for a parkour run for my sons friends and need to work out how to stop the timer.
I want to have the scoreboard showing all players that have run the challenge and the last time that they each completed it. would be good to show the best time for each instead but maybe i can do that later!
I have 4 command blocks with the following which result in the timer being reset, started, and displayed per person. what i cant work out is how to stop it.
1) Reset players time to 0 just before they start next run /scoreboard players @p reset Time
2) Set players timer variable to 1 when they start the run /scoreboard players @p Timer 1
2) Set players timer variable to 0 when they stop the run /scoreboard players @p Timer 0
4) 1 second redstone clock powering a command block to increase Time by 1 each time its activated /scoreboard players add @a Time 1
I was planning to add [scores_Timer_min=1] to 4 so it only increases Time for players where Timer = 1, so only on players currently running the course, but i cant get that working!
I want to have the scoreboard showing all players that have run the challenge and the last time that they each completed it. would be good to show the best time for each instead but maybe i can do that later!
I have 4 command blocks with the following which result in the timer being reset, started, and displayed per person. what i cant work out is how to stop it.
1) Reset players time to 0 just before they start next run /scoreboard players @p reset Time
2) Set players timer variable to 1 when they start the run /scoreboard players @p Timer 1
2) Set players timer variable to 0 when they stop the run /scoreboard players @p Timer 0
4) 1 second redstone clock powering a command block to increase Time by 1 each time its activated /scoreboard players add @a Time 1
I was planning to add [scores_Timer_min=1] to 4 so it only increases Time for players where Timer = 1, so only on players currently running the course, but i cant get that working!
2
I would avoid useing scoreboards. but obviously they are needed for this. I suggest a tag based system.
1) Reset players time to 0 just before they start next run /scoreboard players @p reset Time
2) Set players tag to playing when they start the run /tag @p add playing
2) Reset player tag to nothing when they stop the run /tag @p remove playing
4) 1 second redstone clock powering a command block to increase Time by 1 each time its activated
/scoreboard players add @a[tag=playing] Time 1
p.s. I am a little confused with the question, I haven't tested this, I don't use bedrock(win) so syntax may be a bit off.
1) Reset players time to 0 just before they start next run /scoreboard players @p reset Time
2) Set players tag to playing when they start the run /tag @p add playing
2) Reset player tag to nothing when they stop the run /tag @p remove playing
4) 1 second redstone clock powering a command block to increase Time by 1 each time its activated
/scoreboard players add @a[tag=playing] Time 1
p.s. I am a little confused with the question, I haven't tested this, I don't use bedrock(win) so syntax may be a bit off.
Thanks for that, using tags worked. Its given the small group a leaderboard for a parkour run within a realm. I changed out the redstone clock to a repeating command block on 20 ticks so does the same thing.
