Minecraft Wiki

The Minecraft Wiki has moved from Fandom; see the linked discussion page for details.

READ MORE

Minecraft Wiki
Advertisement
Information icon
This feature is exclusive to Java Edition. 

Commands/infobox

Controls teams.

Syntax

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

Arguments

team
Specifies the name of the team.
displayName (optional)
Specifies the name to be displayed by the team.
members
Specifies the entities to join or leave the team.
option
A specific option to change.[more information needed]
Value must be one of the following:
collisionRule: Decide what entities players on this team can push.
color: Decide the color of the team and players in chat.
deathMessageVisibility: Decide whose death messages can be seen in chat.
displayName: Set the display name of the team.
friendlyFire: Enable/Disable players inflicting damage on each other when on the same team. (Note: players can still inflict status effects on each other.)
nametagVisibility: Decide whose name tags can be seen.
prefix: Modifies the prefix that appears before players' names in chat.
seeFriendlyInvisibles: Decide if players can see invisible players on their team as semi-transparent or completely invisible.
suffix: Modifies the suffix that appears after players' names in chat.
value
Specifies the value to set option to.[more information needed]
Shown below are the values for each option.
  • collisionRule
    • always
    • never
    • pushOtherTeams
    • pushOwnTeam
  • color
    • black
    • dark_blue
    • dark_green
    • dark_aqua
    • dark_red
    • dark_purple
    • gold
    • gray
    • dark_gray
    • blue
    • green
    • aqua
    • red
    • light_purple
    • yellow
    • white
  • deathMessageVisibility
    • never
    • hideForOtherTeams
    • hideForOwnTeam
    • always
  • displayName: string
  • friendlyFire
    • true
    • false
  • nametagVisibility
    • never
    • hideForOtherTeams
    • hideForOwnTeam
    • always
  • prefix: string
  • seeFriendlyInvisibles
    • true
    • false
  • suffix: string

Result

Fails if the arguments are not specified correctly.

On success:

  • add — Creates a new team.
  • empty — Removes all members from a team.
  • join — Makes a player join a team.
  • leave — Makes a player leave a team.
  • list — Lists all teams, or lists all members of a team if team is set.
  • modify — Sets the option of a team to the specified value.
  • remove — Removes the team.

History

Java Edition
1.1317w45aAdded /team.
18w20aAdded /team option <team> prefix <prefix>.
Added /team option <team> suffix <suffix>.
pre8/team option is now /team modify
Added /team modify <teamName> displayName.
Team names are now text components, not raw strings.

See also

  • /scoreboard — manages scoreboard objectives, players and teams
  • /tag – tags players with a certain string
Advertisement