All commands
🛡️
AdvancedJava Bedrock -

/team

Create teams to color names, control friendly fire, and more.

🪨This command is Java Edition only - Bedrock has no direct equivalent.

Overview

What is the /team command?

The /team command creates and manages teams — groups of players (and entities) that can share a name colour, toggle friendly fire, control nametag and death-message visibility, and set collision rules. Teams underpin PvP modes, hide-and-seek, and any minigame that splits players into sides.

They also work with scoreboards and selectors, so you can target everyone on a team at once.

When to use it: Use /team to split players into colored sides with shared rules — friendly fire, nametag visibility, collisions.

At a glance

Syntax

Syntax
/team add <name>
commandtargetcoordsvaluerequiredoptional

See it

What it does

Red
Blue
Sorting players into teams

Anatomy

Every part, explained

  1. 1
    /teamCommandRequired

    Creates and manages teams.

  2. 2
    addActionRequired

    Use add, join, leave, or modify.

  3. 3
    <name>Team nameRequired

    A unique team identifier.

Your turn

Try it yourself

Playground
3 tokens · press Enter to run

Copy & paste

Examples

/team add red

Create a team called red.

/team join red @s

Join the red team.

/team modify red color red

Color the team red.

Avoid these

Common mistakes

/team red add
/team add red

The action goes before the team name.

/team join red
/team join red @s

Specify who joins the team.

Good to know

Frequently asked questions

How do you create a team in Minecraft?
Run /team add <name>, then /team join <name> <players> to put players on it.
How do you turn off friendly fire?
Use /team modify <name> friendlyFire false so teammates can't damage each other.
How do you color a team's name?
Run /team modify <name> color <color>, which tints the players' names and nametags.

Keep going

Related commands