Minecraft:Commands/team: Difference between revisions
More actions
fixed typo |
Remove broken links to missing pages |
||
| Line 46: | Line 46: | ||
:: Must be one of the following: | :: Must be one of the following: | ||
::*<code>displayName</code>: Sets the display name of the team. | ::*<code>displayName</code>: Sets the display name of the team. | ||
::*<code>color</code>: Decides 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 | ::*<code>color</code>: Decides 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. | ||
::*<code>friendlyFire</code>: Enables/Disables players inflicting damage to 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. | ::*<code>friendlyFire</code>: Enables/Disables players inflicting damage to 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. | ||
::*<code>seeFriendlyInvisibles</code>: Decides whether invisible players are semi-transparent or completely invisible to other players on their team. | ::*<code>seeFriendlyInvisibles</code>: Decides whether invisible players are semi-transparent or completely invisible to other players on their team. | ||
| Line 84: | Line 84: | ||
:**<code>always</code> - (Default) Normal collision. | :**<code>always</code> - (Default) Normal collision. | ||
:**<code>never</code> - No entities can push the entities in this team. | :**<code>never</code> - No entities can push the entities in this team. | ||
:**<code>pushOtherTeams</code> - Entities in this team can be pushed only by other entities in the same team. (Contrary to the literal meaning.<ref name="bug"> | :**<code>pushOtherTeams</code> - Entities in this team can be pushed only by other entities in the same team. (Contrary to the literal meaning.<ref name="bug">MC-87984</ref>) | ||
:**<code>pushOwnTeam</code> - Entities in this team cannot be pushed by another entity in this team. (Contrary to the literal meaning.<ref name="bug"></ref>) | :**<code>pushOwnTeam</code> - Entities in this team cannot be pushed by another entity in this team. (Contrary to the literal meaning.<ref name="bug"></ref>) | ||
:*For <code>prefix</code>: | :*For <code>prefix</code>: | ||
| Line 144: | Line 144: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/team | |||
ja:コマンド/team | |||
pt:Comandos/team | |||
ru:Команды консоли/team | |||
zh:命令/team | |||
Revision as of 15:45, 9 April 2026
Template:Exclusive Template:Infobox command
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.
- Lists all teams, with their display names and the amount of entities in them. The optional
team add <team> [<displayName>]- Creates a team with the given name and optional display name.
<displayName>defaults to<team>when unspecified.
- Creates a team with the given name and optional display name.
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 are specified, makes the command 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
Template:Argument (in list, remove, empty, join, and modify mode)
- Specifies the name of a team.
- Template:Arg desc
Template:Argument (in add mode)
- Specifies the name for a new team.
- Template:Arg desc
- Specifies the team name to be displayed.
- Template:Arg desc
- Specifies the entities to join or leave the team.
- Template:Arg desc
<option>
- A specific option to change.
- Must be one of the following:
displayName: Sets the display name of the team.color: Decides 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: Enables/Disables players inflicting damage to 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: Decides whether invisible players are semi-transparent or completely invisible to other players on their team.nametagVisibility: Decides whose name tags above their heads can be seen.deathMessageVisibility: Controls the visibility of death messages for players.collisionRule: Controls the way entities on the team collide with other entities.prefix: Modifies the prefix that displays at the beginning of players' names.suffix: Modifies the suffix that displays at the end of players' names.
<value>
- Specifies the value to set
<option>to. - Shown below are valid values for each option.
- For
displayName:- Template:Argument - Specifies the team name to be displayed. Template:Arg desc
- For
color:- Template:Argument - Template:Arg desc
- Defaults to
reset. Ifreset, names are shown in default color and formatting.
- Defaults to
- Template:Argument - Template:Arg desc
- For
friendlyFire:- Template:Argument - Template:Arg desc
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.
- Template:Argument - Template:Arg desc
- For
seeFriendlyInvisibles:- Template:Argument - Template:Arg desc
true- (Default) Can see invisible players on the same team semi-transparently.false- Cannot see invisible players on the same team.
- Template:Argument - Template:Arg desc
- 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 the entities in this team.pushOtherTeams- Entities in this team can be pushed only by other entities in the same team. (Contrary to the literal meaning.<ref name="bug">MC-87984</ref>)pushOwnTeam- Entities in this team cannot be pushed by another entity in this team. (Contrary to the literal meaning.<ref name="bug"></ref>)
- For
prefix:- Template:Argument - Specifies the prefix to display. Template:Arg desc
- For
suffix:- Template:Argument - Specifies the suffix to display. Template:Arg desc
- For
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
History
See also
- Template:Cmd – manages scoreboard objectives, players and displays
- Template:Cmd – tags players with a certain string
References
de:Befehl/team ja:コマンド/team pt:Comandos/team ru:Команды консоли/team zh:命令/team