/team Command in Minecraft Java Edition

Create and Manage Teams in Minecraft

Java EditionLogic & ScoreboardPermission: Level 2

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.

Syntax (Java 26.3, 25 forms)

  1. /team add <team> [<displayName>]
  2. /team empty <team>
  3. /team join <team> [<members>]
  4. /team leave <members>
  5. /team list [<team>]
  6. /team modify <team> collisionRule always
  7. /team modify <team> collisionRule never
  8. /team modify <team> collisionRule pushOtherTeams
  9. /team modify <team> collisionRule pushOwnTeam
  10. /team modify <team> color <value>
  11. /team modify <team> color reset
  12. /team modify <team> deathMessageVisibility always
  13. /team modify <team> deathMessageVisibility hideForOtherTeams
  14. /team modify <team> deathMessageVisibility hideForOwnTeam
  15. /team modify <team> deathMessageVisibility never
  16. /team modify <team> displayName <displayName>
  17. /team modify <team> friendlyFire <allowed>
  18. /team modify <team> nametagVisibility always
  19. /team modify <team> nametagVisibility hideForOtherTeams
  20. /team modify <team> nametagVisibility hideForOwnTeam
  21. /team modify <team> nametagVisibility never
  22. /team modify <team> prefix <prefix>
  23. /team modify <team> seeFriendlyInvisibles <allowed>
  24. /team modify <team> suffix <suffix>
  25. /team remove <team>

The forms you will use most

/team add <team> [<displayName>]
Creates a new team with an internal name and an optional formatted display name.
/team join <team> [<members>]
Adds the specified players or score holders to a team.
/team leave <members>
Removes the specified members from whichever team they are currently in.
/team modify <team> color <value>
Changes the color assigned to the team.
/team modify <team> friendlyFire <allowed>
Sets whether players on the same team can deal damage to each other.
/team modify <team> nametagVisibility never
Hides the nametags of everyone on this team from all players.
/team empty <team>
Removes all current members from a team without deleting the team itself.
/team remove <team>
Deletes the specified team from the world completely.

Arguments

ArgumentTypeWhat it means
<team>textA word or a piece of text.
<displayName>text componentA JSON or SNBT text component that sets the public display name of the team.
<team>teamThe name of a team.
<members>score holderA score holder such as a player name, target selector, fake player name, or * for everyone tracked.
<value>team colorA valid team color name to apply to the team.
<allowed>true / falseA true or false value that enables or disables the chosen team setting.
<prefix>text componentA JSON or SNBT text component displayed right before a team member's name.
<suffix>text componentA JSON or SNBT text component displayed right after a team member's name.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 26.2 Syntax changed.
    + /team modify <team> color reset
  2. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Minecraft Bedrock Edition does not have the /team command, as this feature is exclusive to Java Edition.

FAQ

How do I turn off friendly fire in Minecraft 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.

How do I hide player nametags using commands?

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.

How do I check which players are on a team?

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.

Related commands

/bossbar/data/execute/function/random/return/schedule/scoreboard/tag/trigger