Create and Manage Teams in Minecraft
The /team command in Minecraft Java Edition lets you create groups of players or score holders and control how they interact. You can use it to add or remove members, assign team colors, and add custom prefixes or suffixes to names.
Server admins and mapmakers often use this command for multiplayer minigames. It allows you to turn off friendly fire, change who can see nametags or death messages, and adjust player collision rules.
/team add <team> [<displayName>]/team empty <team>/team join <team> [<members>]/team leave <members>/team list [<team>]/team modify <team> collisionRule always/team modify <team> collisionRule never/team modify <team> collisionRule pushOtherTeams/team modify <team> collisionRule pushOwnTeam/team modify <team> color <value>/team modify <team> color reset/team modify <team> deathMessageVisibility always/team modify <team> deathMessageVisibility hideForOtherTeams/team modify <team> deathMessageVisibility hideForOwnTeam/team modify <team> deathMessageVisibility never/team modify <team> displayName <displayName>/team modify <team> friendlyFire <allowed>/team modify <team> nametagVisibility always/team modify <team> nametagVisibility hideForOtherTeams/team modify <team> nametagVisibility hideForOwnTeam/team modify <team> nametagVisibility never/team modify <team> prefix <prefix>/team modify <team> seeFriendlyInvisibles <allowed>/team modify <team> suffix <suffix>/team remove <team>/team add <team> [<displayName>]/team join <team> [<members>]/team leave <members>/team modify <team> color <value>/team modify <team> friendlyFire <allowed>/team modify <team> nametagVisibility never/team empty <team>/team remove <team>| Argument | Type | What it means |
|---|---|---|
<team> | text | A word or a piece of text. |
<displayName> | text component | A JSON or SNBT text component that sets the public display name of the team. |
<team> | team | The name of a team. |
<members> | score holder | A score holder such as a player name, target selector, fake player name, or * for everyone tracked. |
<value> | team color | A valid team color name to apply to the team. |
<allowed> | true / false | A true or false value that enables or disables the chosen team setting. |
<prefix> | text component | A JSON or SNBT text component displayed right before a team member's name. |
<suffix> | text component | A JSON or SNBT text component displayed right after a team member's name. |
/team add red_team {"text":"Red Team","color":"red"}Creates a new team named red_team with a red display name.
/team join blue_team @pAdds the nearest player to the team named blue_team.
/team modify green_team friendlyFire falseStops members of green_team from hurting each other.
/team modify yellow_team collisionRule neverMakes it so members of yellow_team cannot push or be pushed by any entities.
/team modify defenders prefix {"text":"[Defender] ","color":"gold"}Adds a gold [Defender] tag in front of the names of everyone on the defenders team.
/team modify stealth_squad nametagVisibility hideForOtherTeamsHides the nametags of stealth_squad members from rival teams while keeping them visible to teammates.
/team modify ghosts seeFriendlyInvisibles trueAllows players on the ghosts team to see their invisible teammates as translucent figures.
/team leave @aRemoves all online players from their current teams.
/team modify purple_team color resetResets the color of purple_team back to the default uncolored state.
Measured from the game files of every Java release from 1.13 to 26.3.
Minecraft Bedrock Edition does not have the /team command, as this feature is exclusive to Java Edition.
First, put the players on the same team using /team join, and then run /team modify <team> friendlyFire false to stop them from damaging each other.
Add the players to a team and run /team modify <team> nametagVisibility never to completely hide their nametags, or use hideForOtherTeams so only their teammates can see them.
Run /team list to see all existing teams, or type /team list <team> with a specific team name to list every member currently in that group.
/bossbar/data/execute/function/random/return/schedule/scoreboard/tag/trigger