/team add my_teamThe /team command creates and manages teams. Teams control player name colors, friendly fire, nametag visibility, collision rules, and death message visibility. This generator builds the correct syntax for every team subcommand.
Teams are more than grouping. When you assign a player to a team, their nametag takes the team color (one of 16 colors), their glowing outline matches that color, and the game applies team rules for friendly fire, collision, and visibility.
The command system has six subcommands: add, remove, join, leave, modify and list. The generator above covers all of them, including the empty action for clearing every member from a team at once.
The /team modify command changes these options after a team is created:
| Option | Values | Default | Description |
|---|---|---|---|
| color | 16 named colors | reset | Nametag and glowing outline color |
| friendlyFire | true / false | true | Whether teammates can damage each other |
| seeFriendlyInvisibles | true / false | true | Teammates see translucent outlines of invisible members |
| nametagVisibility | always, never, hideForOtherTeams, hideForOwnTeam | always | Who can see team members' nametags |
| deathMessageVisibility | always, never, hideForOtherTeams, hideForOwnTeam | always | Who sees death messages for team members |
| collisionRule | always, never, pushOtherTeams, pushOwnTeam | always | Entity collision behavior between team members |
Each player can only be on one team at a time. Joining a new team automatically removes the player from their previous team. You can target entities too, not just players, and mobs added to teams follow the same collision and friendly fire rules.
PvP minigames: create two teams such as red and blue, set friendlyFire false on both, and pick colors. Teammates cannot hurt each other but can attack the other team. Pair with collisionRule pushOtherTeams so allies do not block each other.
Hidden nametags: set nametagVisibility hideForOtherTeams so opponents cannot see player names while teammates still can. This suits hide-and-seek and stealth games.
No-collision lobbies: put every player on one team with collisionRule never to stop players pushing each other. This is standard for server lobbies, hub worlds, and spectator areas.
The /team command creates and manages teams. Teams control nametag colors, friendly fire, collision rules, nametag visibility, and death message visibility. They are used extensively in PvP minigames and adventure maps.
There are 16 team colors matching the standard Minecraft color codes: black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, aqua, red, light_purple, yellow, and white. The color affects player nametags and glowing outlines.
Yes. Run /team modify <team> friendlyFire false. By default friendly fire is enabled (true). Setting it to false prevents team members from dealing damage to each other through any means.
Use /team join <team> <player>. You can add multiple players at once using selectors like @a for all players. Each player can only be on one team at a time, so joining a new team automatically removes them from the old one.
Browse more Minecraft tools: