How to make scoreboard points?

How to make scoreboard points? - Content female customer with long curly hair wearing casual outfit sitting at wooden table with netbook in classic interior restaurant while making online order

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

  1. 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".

  1. 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 to make scoreboard points? - Unrecognizable crop African American female pouring essential oil in glass bottle while making liquid incense at table
How to make scoreboard points? - Concentrated redhead female wearing light apron kneading clay in baking pan while creating in modern apartment
How to make scoreboard points? - Creative female artisan drawing in workshop



How do you add points to a scoreboard?

Scoreboard Command
  • To add an objective: /scoreboard objectives add <objective> <criteria> [displayName]
  • To remove an objective: /scoreboard objectives remove <objective>
  • To list all objectives: /scoreboard objectives list.
  • To set how the objectives are displayed: /scoreboard objectives setdisplay <slot> [objective]


  • How 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