1
Minecraft command block help
Moderators if this is in the wrong section please move it
Hi guys i got a problem im trying to make a minigame where if theres a specific number of players the game will start i dont know the command or something and there gonna be 2 teams attackers and defenders if you can please help me.
Hi guys i got a problem im trying to make a minigame where if theres a specific number of players the game will start i dont know the command or something and there gonna be 2 teams attackers and defenders if you can please help me.
Create an account or sign in to comment.
6
1
Remember all of these commands will only work if there are exactly 12 players online. Now, make a command block connected to the comparator and put another command block directly on top of that. In one command block, type this command:
In the other command block, type this command:
Make sure that you replace "team_name" and "other_team_name" with the actual names of the two teams you've created. If you haven't created any teams yet, do so with this command:
Tell me if you run into any issues with this!
/scoreboard teams join @a[c=6,team=] team_name
In the other command block, type this command:
/scoreboard teams join @a[c=6,team=] other_team_name
Make sure that you replace "team_name" and "other_team_name" with the actual names of the two teams you've created. If you haven't created any teams yet, do so with this command:
/scoreboard teams add team_name
Tell me if you run into any issues with this!
1
put the command block on top of what im counfused on that part
1
ok that is done but now i need to make it if theres like 12 people after it checks for all the people i want it to split it into teams of 6 how will that work
1
Create a redstone clock the powers a command block with the following command:
Then place a comparator facing out from that command block. When there are the specified "#ofplayers" online, the comparator will turn on. Hope this helps!
/testfor @a[c=#ofplayers]
Then place a comparator facing out from that command block. When there are the specified "#ofplayers" online, the comparator will turn on. Hope this helps!
1
This is incorrect. The 'count' parameter is only the maximum number of players the command should target; if there are fewer than the specified number of players, they will still be selected. Techdoodle's method would have to be used for both cases, and the new "CommandStats" would be required for values over 15 (due to the limitation of redstone signals).
1
/testfor @a[r=(whatever radius)]
Then have a comparator coming out and the strength of the redstone is how many players.
Then have a comparator coming out and the strength of the redstone is how many players.