OGTOOLS

Minecraft /team command

Splits players into teams; you can set color, friendly fire and name tag visibility.

🧍 Player commands Operator (level 2) Needs cheats enabled Java Edition 26.3

Syntax

/team add <team> [<displayName>]
/team join <team> [<members>]
/team leave <members>
/team modify <team> <option> <value>
/team remove <team>

Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.

Arguments

ArgumentWhat it does
modify Changes settings such as color, friendlyFire, nametagVisibility, prefix and suffix.

Examples

/team add red_team

Creates a team called red_team.

/team modify red_team color red

Makes the team's names and glow red.

/team join red_team @a[distance=..10]

Adds everyone nearby to the team.

Good to know

  • A player can only be on one team at a time.
  • Set friendlyFire to false and teammates cannot hit each other.

How do I run this command?

Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (operator (level 2)).

Related commands

🧍 More Player commands

Another tool Minecraft crafting recipes Would rather make the item than give it with a command? See the recipe on the 3x3 grid.

Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.