Skip to main content

/team

Manages teams for the scoreboard. Teams control PvP, name colors, collision rules, and name visibility.

Category
Data
Permission Level
Game Master
Version Added
1.5

Overview

Manages teams for the scoreboard. Teams control PvP, name colors, collision rules, and name visibility. In vanilla Minecraft Java Edition it is one of the data commands and has been available since version 1.5.

It is invoked as /team ... and accepts 2 required arguments ( and ).

Team options include: friendlyFire, seeFriendlyInvisibles, nametagVisibility, deathMessageVisibility, collisionRule, color, prefix, suffix. Teams are powerful for organizing PvP, minigames, and display customization.

Team options include friendlyFire, seeFriendlyInvisibles, nametagVisibility, collisionRule, color, prefix and suffix; the team colour also tints the Glowing outline of its members.

Syntax & Arguments

/team <add|empty|join|leave|list|modify|remove> ...

The full syntax is /team .... Angle brackets < > mark required arguments and square brackets [ ] mark optional ones; a vertical bar | between words means you pick exactly one of those literals. You must always supply and .

action
Required, of type a literal. add, empty, join, leave, list, modify, or remove.
arguments
Required, of type a various. Varies by action.

Parameters

NameTypeRequiredDescription
actionliteralRequiredadd, empty, join, leave, list, modify, or remove.
argumentsvariousRequiredVaries by action.

Examples

The 3 examples below are ready to copy and adapt. For instance, /team add red {"text":"Red Team","color":"red"} creates a team named 'red' with the display name 'Red Team' in red color. Each example varies the arguments to show a different real use of /team; read the note under every snippet to see exactly what changes.

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

Creates a team named 'red' with the display name 'Red Team' in red color.

/team join red @a

Adds all players to the red team.

/team modify red friendlyFire false

Disables friendly fire for the red team.

Permission Level & Requirements

/team sits at permission Level 2 - Game Master / Cheats, which means it needs permission level 2, the level cheats grant to single-player worlds and that operators hold by default.

In a single-player world you must have "Allow Cheats" turned on (or open the world to LAN with cheats) before it will run; on a multiplayer server the player needs to be an operator at the matching level.

This reference describes the Java Edition 1.21 form of the command; Bedrock Edition may use slightly different argument formats.

Common Mistakes

Notes

Team options include: friendlyFire, seeFriendlyInvisibles, nametagVisibility, deathMessageVisibility, collisionRule, color, prefix, suffix. Teams are powerful for organizing PvP, minigames, and display customization.

Related Commands

If /team is part of your toolkit, the commands below are the ones you will most often reach for alongside it: /scoreboard, /tag, and /effect. They cover closely related tasks, so the links above jump straight to each one.

Frequently Asked Questions about /team

What does the /team command do in Minecraft?

Manages teams for the scoreboard. Teams control PvP, name colors, collision rules, and name visibility. It belongs to the data command group and was added in Java Edition 1.5.

What is the correct syntax for /team?

/team .... The required arguments are action and arguments.

What permission level does /team need?

It requires permission Level 2 - Game Master / Cheats. On a server the player must be an operator at that level, or have cheats enabled in single-player.

What is a common mistake when using /team?

Forgetting to use JSON text components for the display name in /team add.

Can you give an example of /team in use?

Yes. /team join red @a — adds all players to the red team.

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting