How do I set up a scorebord variable to act as a bool and later test for it
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?
setting up the scoreboard
changing the variable to 1 or 0
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 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🎮 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
