How to make scoreboard points?
I am working on a Minecraft map where two teams have to get to the other side first. I want it to be that the first team to 3 points wins. Is there any way I can do this?
Best Answer
Setup a scoreboard for both teams:
/scoreboard objectives add OBJNAME dummy /scoreboard objectives add OBJNAME2 dummy
Change OBJNAME to any name you want it to be. Don't change "dummy".
If team A wins, add 1 to the objective 1. Team B, add 1 to objective 2.
/scoreboard players add @a OBJNAME 1
Change the OBJNAME to either team A/B as you made above. Don't change number 1.
To see when a team wins, you need command blocks with testfor command:
/testfor @p[score_OBJNAME_min=3]
Put that again in another command block with its other OBJNAME. Put a comparator on that command block and then another one to do whatever you want when a team gets to 3.
Pictures about "How to make scoreboard points?"



How do you add points to a scoreboard?
Scoreboard CommandHow do you make your own scoreboard?
Minecraft Exp modifier command Gives the targeted player an amount of experience points. If you just want to add levels instead, which is easier for enchanting, try \u201c/xp <amount>L [player]\u201d.Minecraft Scoreboard Command Tutorial [1.18]
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Yan Krukov, Anna Shvets, Monstera, Andrea Piacquadio
