I am trying to make a player join a team when their score is a specific number.
Example:
/scoreboard teams join Rank1 @a[score_ranklvl=1]
Basically, if the players level equals a number and only that specific number will the player join that team.
minecraft-commandsminecraft-java-edition
I am trying to make a player join a team when their score is a specific number.
Example:
/scoreboard teams join Rank1 @a[score_ranklvl=1]
Basically, if the players level equals a number and only that specific number will the player join that team.
Best Answer
The command for adding players to teams is:
And the code that means "all players" is @a
That means, to add everyone to a team we do
All we need to do is add a modifier to @a to accomplish what you want You had it right, but you were saying when there score is a maximum of one. This is the command you would use: