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