How do I set up a scorebord variable to act as a bool and later test for it

How do I set up a scorebord variable to act as a bool and later test for it - Transparent lab tubes in modern clinic

I am making a capture the point map in minecraft in which two teams are capturing points. I intended a capture point that switches color every time a redstone pulse is supplied. now i have a problem with the capturing logic. because if the capture point is from team blue and a team blue player would capture it, it would turn to red and vice versa

I need to set up a score board variable that is not displayed in the sidebar. the variable should be called something like "CaptureTeam". the variable is used to indicate which team has captured the point. CaptureTeam = 1 >> blue, CaptureTeam = 0 >> red.

then I need to test the variable every 2 ticks (using a simple clock and a testfor I figured).

I would like to have 10 capture points. at the start I would like to be able to reset them to a specific team. 5 for team red and 5 for team blue.

I already have the redstone set up because I'm pretty good at that, it's just that command blocks are so situation specific(for every situation there are different commands) that I could not realy find anything on the internet.

can anybody help me with the commands for this?

  1. setting up the scoreboard

  2. changing the variable to 1 or 0

  3. testing the state of the variable






Pictures about "How do I set up a scorebord variable to act as a bool and later test for it"

How do I set up a scorebord variable to act as a bool and later test for it - Group Of People Having A Meeting
How do I set up a scorebord variable to act as a bool and later test for it - Woman Standing Behind Red Curtain
How do I set up a scorebord variable to act as a bool and later test for it - Crop Photo Of Woman Standing Behind A Curtain



How do you make a scoreboard timer in Minecraft?

The syntax for the scoreboard would be "/scoreboard objectives add Money dummy" without parenthesis. To place this scoreboard to the sidebar, Minecraft players can then use the command "/scoreboard objectives setdisplay sidebar Money" which should display the scoreboard to the right of the screen.

How do you add multiple scoreboards in Minecraft?

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]




  • 🎮 UE4/UE5 Multiplayer - Part 2: Game Instances




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Jorge SepĂșlveda, cottonbro, cottonbro, cottonbro