1

Command Block Scoreboard Help

icedragon926's Avatar icedragon9266/7/13 10:37 pm
1 emeralds 1.6k 16
6/29/2013 4:24 pm
Spellguard's Avatar Spellguard
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 icedragon926's Avatar
icedragon926
Level 49 : Master Blob
345

Create an account or sign in to comment.

16

info Note: You're viewing a single reply. View all replies
1
06/09/2013 9:11 am
Level 38 : Artisan Electrician
Statistical
Statistical's 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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome