News
Game
Guides
Downloads
Versions
/team
COMMANDS COMMAND BLOCKS & MAPS CHEATS · LEVEL 2 7 SUBCOMMANDS Added in 1.14 or earlier

/team command in Minecraft

/team groups players and other entities into teams with a color, a prefix and their own rules. Teams control friendly fire, name tags, death messages, collisions and whether invisible teammates stay visible. They are essential for PvP maps, minigames and colored glowing outlines.

Syntax

/team add <team> [<displayName>]
/team empty <team>
/team join <team> [<members>]
/team leave <members>
/team list [<team>]
/team modify <team> (collisionRule|color|deathMessageVisibility|displayName|friendlyFire|nametagVisibility|prefix|seeFriendlyInvisibles|suffix)
/team remove <team>
All 28 forms
  • /team add <team>
  • /team add <team> <displayName>
  • /team empty <team>
  • /team join <team>
  • /team join <team> <members>
  • /team leave <members>
  • /team list
  • /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 reset
  • /team modify <team> color <value>
  • /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 add <team> [<displayName>]
ArgumentExpectsWhat it does
teamTextone wordTeam name, one word like red or blue_team. For add, the new name; otherwise an existing team.
displayNameoptionalJSON textName shown in displays instead of the ID, as a quoted string or a text component.
All 2 forms
  • /team add <team>
  • /team add <team> <displayName>
/team empty
/team empty <team>
ArgumentExpectsWhat it does
teamTeam nameTeam name, one word like red or blue_team. For add, the new name; otherwise an existing team.
/team join
/team join <team> [<members>]
ArgumentExpectsWhat it does
teamTeam nameTeam name, one word like red or blue_team. For add, the new name; otherwise an existing team.
membersoptionalScore holderone or severalPlayers, entities or names to add or remove. Without it, join adds yourself.
All 2 forms
  • /team join <team>
  • /team join <team> <members>
/team leave
/team leave <members>
ArgumentExpectsWhat it does
membersScore holderone or severalPlayers, entities or names to add or remove. Without it, join adds yourself.
/team list
/team list [<team>]
ArgumentExpectsWhat it does
teamoptionalTeam nameTeam name, one word like red or blue_team. For add, the new name; otherwise an existing team.
All 2 forms
  • /team list
  • /team list <team>
/team modify
/team modify <team> (collisionRule|color|deathMessageVisibility|displayName|friendlyFire|nametagVisibility|prefix|seeFriendlyInvisibles|suffix)
ArgumentExpectsWhat it does
teamTeam nameTeam name, one word like red or blue_team. For add, the new name; otherwise an existing team.
valueColorOne of the 16 chat colors, such as red, dark_blue, gold or light_purple.
displayNameJSON textName shown in displays instead of the ID, as a quoted string or a text component.
allowedtrue / falsetrue or false: turns the option on or off for the whole team.
prefixJSON textText component placed before each member's name, for example {"text":"[RED] ","color":"red"}.
suffixJSON textText component placed after each member's name, for example {"text":" (AFK)","color":"gray"}.
All 19 forms
  • /team modify <team> collisionRule always
  • /team modify <team> collisionRule never
  • /team modify <team> collisionRule pushOtherTeams
  • /team modify <team> collisionRule pushOwnTeam
  • /team modify <team> color reset
  • /team modify <team> color <value>
  • /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 remove <team>
ArgumentExpectsWhat it does
teamTeam nameTeam name, one word like red or blue_team. For add, the new name; otherwise an existing team.

Examples

Create a team with a display name

/team add red {"text":"Red Team","color":"red"}

Creates the team red, shown as a red "Red Team" in lists and messages.

Java 26.3

Give the team a color

/team modify red color red

Members get red names in chat and in the player list, and a red glowing outline.

Java 26.3

Add the nearest player

/team join red @p

Puts the nearest player in the red team and removes them from any previous team.

Java 26.3

Turn off friendly fire

/team modify red friendlyFire false

Members of the red team can no longer hurt each other.

Java 26.3

Hide name tags from opponents

/team modify red nametagVisibility hideForOtherTeams

Players outside the red team no longer see the name tags of its members.

Java 26.3

Add a prefix before names

/team modify red prefix {"text":"[RED] ","color":"red"}

Shows [RED] in red before every member's name.

Java 26.3

Make a team glow

/execute as @a[team=red] run effect give @s minecraft:glowing 10 0 true

Gives Glowing to every red team member for 10 seconds; the outline takes the team color.

Java 26.3

Remove everyone from their teams

/team leave @a

Takes all online players out of whatever team they are in.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

Teams in practice

Create a team with team add red, give it a color, then add members with team join red @p. Without members, join adds yourself. An entity belongs to one team at most, so joining another team moves it. Members can be players, any entity found by a selector, or plain names, like score holders. The team color tints names in chat and in the player list, and the outline of the Glowing effect. Prefix and suffix are text components shown around the name.

Options for maps

  • friendlyFire false: teammates cannot hurt each other.
  • seeFriendlyInvisibles true: teammates with Invisibility stay visible as see-through figures.
  • nametagVisibility and deathMessageVisibility: always, never, hideForOtherTeams or hideForOwnTeam.
  • collisionRule: never turns off pushing; pushOwnTeam and pushOtherTeams limit it to one side.

With other commands

Select a team with @a[team=red] in /execute, or @a[team=!red] for everyone else. /teammsg sends a message to your team only, and the display slot sidebar.team.red of /scoreboard shows an objective only to teams with that color. team empty clears a team, and team remove deletes it.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/team: FAQ

Can a player be in two teams at once?

No. Joining a new team removes the player from the old one automatically.

How do I change the color of the glowing outline?

Put the entity in a team and set the color, for example with /team modify red color red. The Glowing effect then uses that color.

How do I use /team?

Type it in the chat with cheats on: /team add <team> [<displayName>].

Who can use /team?

Cheats on, or operator level 2.

Related commands