Command Block Scoreboard Help

Such an intricate part of Minecraft that it deserves a whole section dedicated to it. Post your most amazing Redstone creations here!

Post Permalink
by icedragon926 » 6/7/2013

Hi, I am making a map and I am almost done. All I need is to make the winning team. There are 2 teams, red and blue. The team with the most points at the end of the game wins. How do I make it so it detects the winning team? Can it add up all of the points of each player and the one with the most points wins? Is it possible? :mrgreen:
Hai there :3
User avatar
Level 41
Master Blob
Posts: 214
Joined: 1/6/13
Says: Potato
Minecraft: icedragon926

Post Permalink
by atomick86 » 6/7/2013

I did something like this for someone else, I'll make a contraption and send you a download link.
Image
User avatar
Level 9
Apprentice Engineer
Posts: 285
Joined: 8/26/12
Location: AUSTRAILIA!!!!!!!!!!!!!!!!
Says: Lemons!
Minecraft: atomick86

Post Permalink
by icedragon926 » 6/7/2013

atomick86 wrote:I did something like this for someone else, I'll make a contraption and send you a download link.

Ok, thanks.
Hai there :3
User avatar
Level 41
Master Blob
Posts: 214
Joined: 1/6/13
Says: Potato
Minecraft: icedragon926

Post Permalink
by icedragon926 » 6/8/2013

Does anyone else have an answer? I want to finish my map...... :(
Hai there :3
User avatar
Level 41
Master Blob
Posts: 214
Joined: 1/6/13
Says: Potato
Minecraft: icedragon926

Post Permalink
by Statistical » 6/9/2013

I don't believe there is a way to compare signals using the scoreboard command, which would be what you need. You could jerry-rig a long line of scoreboard commands that you could compare at the end, but that would defeat the purpose of using command blocks to keep score.

Reading over your question again I don't know whether you are using a direct input to count the score or a /scoreboard command. I assume you are using a /scoreboard objective; hence the previous statement.

It won't work for this map, (I assume players on both sides will be alive when the game ends) but for future projects you can change the player's gamemode once they die. (from adventure to creative etc...) Then, when the game ends, you can /testfor all players with arguments for team and gamemode. Do this for each team and then compare outputs.

My /scoreboard knowledge is somewhat limited unfortunately, so hopefully atomick86 knows what you need.
Redstone is power.
Image
User avatar
Level 33
Artisan Electrician
Posts: 38
Joined: 2/12/12
Minecraft: mdugan90

Post Permalink
by Alloutsteve27 » 6/9/2013

Its pretty easy... for me. its a Sethbling technique
User avatar
Level 9
Apprentice Skinner
Posts: 180
Joined: 6/8/13

Post Permalink
by icedragon926 » 6/9/2013

Alloutsteve27 wrote:Its pretty easy... for me. its a Sethbling technique

Can you tell me about the 'technique'?
Hai there :3
User avatar
Level 41
Master Blob
Posts: 214
Joined: 1/6/13
Says: Potato
Minecraft: icedragon926

Post Permalink
by Nice7 » 6/9/2013

I don't actually know much about the scoreboard part of command blocks but this could help you very much.
User avatar
Site Moderator
Level 22
Expert Unicorn
Posts: 719
Joined: 10/4/11
Location: Solstheim
Says: Yes
Minecraft: Nice_70_11

Post Permalink
by icedragon926 » 6/10/2013

Nice7 wrote:I don't actually know much about the scoreboard part of command blocks but this could help you very much.

A very helpful guide indeed! Too bad I didn't find what I was looking for... :P
Hai there :3
User avatar
Level 41
Master Blob
Posts: 214
Joined: 1/6/13
Says: Potato
Minecraft: icedragon926

Post Permalink
by StanDaMan809 » 6/22/2013

Sorry for the late reply but I think I know how to do it.
Make a long line of comparators that take away 1 of the score you're comparing until one of them reaches 0.
The command block that detects the score will have:
testfor @a[(score)=0].
After the command has been done successfully, make sure that command block is connected by a comparator that connects to another command block that says:
@a[(score)_min=1] has won the game!
Level 1
New Miner
Posts: 6
Joined: 1/5/13

Post Permalink
by Flamerate1 » 6/23/2013

dude i made this type of scoreboard system yesterday. if you check out my wither ball mini game there's a circuit behind the whole place that has a clock hooked up to testfor command blocks. it uses the lengths of redstone to make the scoreboard inside. you could alter it to where it compares the two redstone signals with a comparator and use that output somehow to hook up more command blocks to do whatever you want.
Oh and im 12. :geek:
ImageImage
User avatar
Level 17
Journeyman Explorer
Posts: 48
Joined: 2/10/13

Post Permalink
by Asturar » 6/23/2013

Flamerate1 wrote:dude i made this type of scoreboard system yesterday. if you check out my wither ball mini game there's a circuit behind the whole place that has a clock hooked up to testfor command blocks. it uses the lengths of redstone to make the scoreboard inside. you could alter it to where it compares the two redstone signals with a comparator and use that output somehow to hook up more command blocks to do whatever you want.
Oh and im 12. :geek:

Like a Boss :geek:
Redstone Hi-Five!
Image
Image
User avatar
Level 18
Journeyman Dragon
Posts: 340
Joined: 5/13/12
Says: Sir, do you have a license for that ninja-chicken?
Minecraft: Asturar

Next

Return to Redstone