EntitiesJavaBedrock

/team

Creates teams and controls their members and display options: name color, friendly-fire, seeing invisible teammates, nametag/death-message visibility, and collision rules. Teams are the standard way to color player names and toggle PvP between groups.

What is /team used for?

What /team is for

Creates teams and controls their members and options: name color, friendly fire, seeing invisible teammates, nametag visibility, and collision rules.

When to use /team

Color player names, split a lobby into red vs blue, toggle PvP between groups, or hide nametags for a stealth game.

Tips for /team

/team modify <team> friendlyFire false stops teammates damaging each other, and color also tints the names. To send team-only chat, players use /teammsg.

Syntax

Alternate forms:

Parameters

action
literal
add / empty / join / leave / list / modify / remove.
team
string
Team name.
optionoptional
literal
color, friendlyFire, nametagVisibility, collisionRule, etc.

Command builder

Fill in the options below to generate a ready-to-paste /team command.

add / empty / join / leave / list / modify / remove.

Team name.

optional

color, friendlyFire, nametagVisibility, collisionRule, etc.

Examples

  • Create a team named 'red'.

  • Color the team's names red.

  • Add all players to the red team.

  • Disable PvP damage between teammates.

Common questions

How do I change a team's name color?

Run /team modify <team> color <color>, e.g. /team modify red color red. It tints members' names.

How do I turn off friendly fire?

Use /team modify <team> friendlyFire false so players on the same team can't damage each other.

Permission level

/team requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.