1

Command Block Scoreboard Help

1 emerald 16 replies 1,468 views | started 06/07/2013 10:37 pm by icedragon926
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?
Posted by avatar
icedragon926
Level 46 : Master Blob
343

16 replies

1
06/29/2013 4:24 pm
Level 21 Expert Cake
Spellguard
avatar
I know for a fact you can compare scoreboard scores with /testfor commands and comparators; based off of signal strength, so its limited to fifteen. But this requires rigging up a lot of commands and would probably be a lot of work to do so.

A interesting idea would be using items to count who wins. Each time someone scores a point, then an item would be shot into something, like a gold pressure plate or a furnace or whatever. But this would lead to inaccuracies.

My best advice would be to find a new way to keep score. There is no real feature for this.
1
06/29/2013 2:02 pm
Level 19 Journeyman Unicorn
Alloutsteve27
avatar
if its a server can i join ill build the score board
1
06/29/2013 1:11 am
Level 46 Master Blob
icedragon926
avatar
I will try it
1
06/24/2013 3:29 am
Level 24 Expert Engineer
LiquidChildren1
avatar
Basically, you cannot add up the whole teams scores, unless you do it like this:

Find every command block that gives score to a Red player. If the score is "kills" or "deaths", it's a bit trickier, but still possible. Basically, if its a dummy objective, simply set another command block next to it that will activate at the same time that a red player gets score. The command will be

/scoreboard players add RedTeam [objective] [amount]

which will add points to a pretend player known as RedTeam. Do the same for BlueTeam, and then you have total scores for the teams.
1
06/24/2013 1:15 am
Level 22 Expert Mountaineer
cblondeboy
avatar
Check out this Guy On YouTube he's great with Scoreboard stuff

http://www.youtube.com/channel/UCNRt2CNtdt4PZx8KnetjCQA
1
06/23/2013 11:24 am
Level 20 Expert Explorer
Flamerate1
avatar
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.
1
06/23/2013 11:29 am
Level 21 Expert Dragon
Asturar
avatar
Like a Boss
Redstone Hi-Five!
1
06/22/2013 11:22 pm
Level 1 New Miner
StanDaMan809
avatar
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!
1
06/09/2013 8:46 pm
Level 30 Artisan Fish
Nice7
avatar
I don't actually know much about the scoreboard part of command blocks but this could help you very much.
1
06/10/2013 2:06 am
Level 46 Master Blob
icedragon926
avatar
A very helpful guide indeed! Too bad I didn't find what I was looking for...
1
06/09/2013 10:20 am
Level 19 Journeyman Unicorn
Alloutsteve27
avatar
Its pretty easy... for me. its a Sethbling technique
1
06/09/2013 11:24 am
Level 46 Master Blob
icedragon926
avatar
Can you tell me about the 'technique'?
1
06/09/2013 9:11 am
Level 36 Artisan Electrician
Statistical
avatar
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.
1
06/08/2013 2:47 pm
Level 46 Master Blob
icedragon926
avatar
Does anyone else have an answer? I want to finish my map......
1
06/07/2013 10:50 pm
Level 15 Journeyman Engineer
atomick86
avatar
I did something like this for someone else, I'll make a contraption and send you a download link.
1
06/07/2013 11:08 pm
Level 46 Master Blob
icedragon926
avatar
Ok, thanks.

Search

Browse

Site

© planetminecraft.com

Welcome