Commands/team

Controls teams.
==Syntax==
: team list [<team>]
:: Lists all teams, with their display names and the amount of entities in them. The optional <team> can be used to specify a particular team.
: team add <team> [<displayName>]
:: Creates a team with the given name and optional display name. <displayName> defaults to <team> when unspecified.
: team remove <team>
:: Deletes the specified team.
: team empty <team>
:: Removes all members from the named team.
: team join <team> [<members>]
:: Assigns the specified entities to the specified team. If no entities is specified, makes the executor join the team.
: team leave <members>
:: Makes the specified entities leave their teams.
: team modify <team> <option> <value>
:: Modifies the options of the specified team.
==Arguments==
 (in list, remove, empty, join, and modify mode)
: Specifies the name of a team.
: 
 (in add mode)
: Specifies the name for a new team.
: 
: Specifies the team name to be displayed.
: 
: Specifies the entities to join or leave the team. 
: 
<option>
:: A specific option to change.
:: Value must be one of the following:
::*displayName: Set the display name of the team.
::*color: Decide the color of the team and players in chat, above their head, on the Tab menu, and on the sidebar. Also changes the color of the outline of the entities caused by the Glowing effect.
::*friendlyFire: Enable/Disable players inflicting damage on each other when on the same team. (Note: players can still inflict status effects on each other.) Does not affect some non-player entities in a team.
::*seeFriendlyInvisibles: Decide players can see invisible players on their team as whether semi-transparent or completely invisible.
::*nametagVisibility: Decide whose name tags above their heads can be seen.
::*deathMessageVisibility: Control the visibility of death messages for players.
::*collisionRule: Controls the way the entities on the team collide with other entities.
::*prefix: Modifies the prefix that displays before players' names.
::*suffix: Modifies the suffix that displays after players' names.
<value>
: Specifies the value to set <option> to.
: Shown below are the values for each option.
:*For displayName:
:** - Specifies the team name to be displayed. 
:*For color:
:** - 
:*** Defaults to reset. If reset, names are shown in default color and formatting.
:*For friendlyFire:
:** - 
:***true - (Default) Enable players inflicting damage on each other when in the same team.
:***false - Disable players inflicting damage on each other when in the same team.
:*For seeFriendlyInvisibles:
:** - 
:***true - (Default) Can see invisible players on the same team semi-transparently.
:***false - Cannot see invisible players on the same team.
:*For nametagVisibility:
:**never - Name above player's head cannot be seen by any players.
:**hideForOtherTeams - Name above player's head can be seen only by players in the same team.
:**hideForOwnTeam - Name above player's head cannot be seen by all the players in the same team.
:**always - (Default) Name above player's head can be seen by all the players.
:*For deathMessageVisibility:
:**never - Hide death message for all the players.
:**hideForOtherTeams - Hide death message to all the players who are not in the same team.
:**hideForOwnTeam - Hide death message to players in the same team.
:**always - (Default) Make death message visible to all the players.
:*For collisionRule:
:**always - (Default) Normal collision.
:**never - No entities can push entities in this team.
:**pushOtherTeams - Entities in this team can be pushed only by other entities in the same team.MC-87984
:**pushOwnTeam - Entities in this team cannot be pushed by another entity in this team.
:*For prefix:
:** - Specifies the prefix to display. 
:*For suffix:
:** - Specifies the suffix to display. 
== Result ==
== Output ==
== History ==
== See also ==
* — manages scoreboard objectives, players and displays
* – tags players with a certain string
==References==
de:Befehl/team
ja:コマンド/team
pt:Comandos/team
zh:命令/team