EntitiesJavaBedrock
/team
Creates teams and controls their members and display options: name color, friendly-fire, seeing invisible teammates, nametag/death-message visibility, and collision rules. Teams are the standard way to color player names and toggle PvP between groups.
Syntax
Alternate forms:
Parameters
- action
- literal
- add / empty / join / leave / list / modify / remove.
- team
- string
- Team name.
- optionoptional
- literal
- color, friendlyFire, nametagVisibility, collisionRule, etc.
Examples
Create a team named 'red'.
Color the team's names red.
Add all players to the red team.
Disable PvP damage between teammates.
Permission level
/team requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.