So I'm creating a game where there are two teams, red and blue, and it functions like a team deathmatch game. I have almost everything set up, except when I play tested with some friends, the scoreboard only displayed one player's score. I have the game set up where players have a kill count using playerKillCount which works fine, and i have a sidebar set up with 2 dummies to act as a score counter, but only displays 1 players kill count, and i want all of the team members scores to be combined and displayed as one.
So I'm creating a game where there are two teams, red and blue, and it functions like a team deathmatch game. I have almost everything set up, except when I play tested with some friends, the scoreboard only displayed one player's score. I have the game set up where players have a kill count using playerKillCount which works fine, and i have a sidebar set up with 2 dummies to act as a score counter, but only displays 1 players kill count, and i want all of the team members scores to be combined and displayed as one.
if you have an objective with the "kill count" criteria, all you need to do is display it with:
yes, i understand that, but i want it so only the 2 fake players are displayed under a dummy objective called score on the sidebar, so when one of them reaches a certain score the game will end, so i want to combine all of the teams kills into the Score objective for their team.
yes, i understand that, but i want it so only the 2 fake players are displayed under a dummy objective called score on the sidebar, so when one of them reaches a certain score the game will end, so i want to combine all of the teams kills into the Score objective for their team.
So I'm creating a game where there are two teams, red and blue, and it functions like a team deathmatch game. I have almost everything set up, except when I play tested with some friends, the scoreboard only displayed one player's score. I have the game set up where players have a kill count using playerKillCount which works fine, and i have a sidebar set up with 2 dummies to act as a score counter, but only displays 1 players kill count, and i want all of the team members scores to be combined and displayed as one.
if you have an objective with the "kill count" criteria, all you need to do is display it with:
and every player will be shown once they reach 1 kill
Command block engineer // Developer // #TeamTrees
yes, i understand that, but i want it so only the 2 fake players are displayed under a dummy objective called score on the sidebar, so when one of them reaches a certain score the game will end, so i want to combine all of the teams kills into the Score objective for their team.
you have to use the "/scoreboard players operation" command to sum the scores of every players on each team
check minecraft gamepedia for help about this command
In that case, use what yered said.
to loop this over every player dynamically, you will need to do this:
run the commands from above in a command block chain (in order) and it will sum all the scores of all players in the game into the second objective
Command block engineer // Developer // #TeamTrees