/team
Manages teams for the scoreboard. Teams control PvP, name colors, collision rules, and name visibility.
Overview
Manages teams for the scoreboard. Teams control PvP, name colors, collision rules, and name visibility. In vanilla Minecraft Java Edition it is one of the data commands and has been available since version 1.5.
It is invoked as /team and accepts 2 required arguments (
Team options include: friendlyFire, seeFriendlyInvisibles, nametagVisibility, deathMessageVisibility, collisionRule, color, prefix, suffix. Teams are powerful for organizing PvP, minigames, and display customization.
Team options include friendlyFire, seeFriendlyInvisibles, nametagVisibility, collisionRule, color, prefix and suffix; the team colour also tints the Glowing outline of its members.
Syntax & Arguments
/team <add|empty|join|leave|list|modify|remove> ...The full syntax is /team . Angle brackets < > mark required arguments and square brackets [ ] mark optional ones; a vertical bar | between words means you pick exactly one of those literals. You must always supply
- action
- Required, of type a literal. add, empty, join, leave, list, modify, or remove.
- arguments
- Required, of type a various. Varies by action.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | literal | Required | add, empty, join, leave, list, modify, or remove. |
| arguments | various | Required | Varies by action. |
Examples
The 3 examples below are ready to copy and adapt. For instance, /team add red {"text":"Red Team","color":"red"} creates a team named 'red' with the display name 'Red Team' in red color. Each example varies the arguments to show a different real use of /team; read the note under every snippet to see exactly what changes.
/team add red {"text":"Red Team","color":"red"}Creates a team named 'red' with the display name 'Red Team' in red color.
/team join red @aAdds all players to the red team.
/team modify red friendlyFire falseDisables friendly fire for the red team.
Permission Level & Requirements
/team sits at permission Level 2 - Game Master / Cheats, which means it needs permission level 2, the level cheats grant to single-player worlds and that operators hold by default.
In a single-player world you must have "Allow Cheats" turned on (or open the world to LAN with cheats) before it will run; on a multiplayer server the player needs to be an operator at the matching level.
This reference describes the Java Edition 1.21 form of the command; Bedrock Edition may use slightly different argument formats.
Common Mistakes
- Forgetting to use JSON text components for the display name in /team add.
- Not realizing team color affects name display, glow effect color, and sidebar display.
Notes
Team options include: friendlyFire, seeFriendlyInvisibles, nametagVisibility, deathMessageVisibility, collisionRule, color, prefix, suffix. Teams are powerful for organizing PvP, minigames, and display customization.
Related Commands
If /team is part of your toolkit, the commands below are the ones you will most often reach for alongside it: /scoreboard, /tag, and /effect. They cover closely related tasks, so the links above jump straight to each one.
Frequently Asked Questions about /team
What does the /team command do in Minecraft?
Manages teams for the scoreboard. Teams control PvP, name colors, collision rules, and name visibility. It belongs to the data command group and was added in Java Edition 1.5.
What is the correct syntax for /team?
/team
What permission level does /team need?
It requires permission Level 2 - Game Master / Cheats. On a server the player must be an operator at that level, or have cheats enabled in single-player.
What is a common mistake when using /team?
Forgetting to use JSON text components for the display name in /team add.
Can you give an example of /team in use?
Yes. /team join red @a — adds all players to the red team.
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting