VelaBoard teams group players and entities with shared visual and gameplay properties. By assigning members to a team, you control how their names appear, whether they can damage each other, and how collision and name tag rules apply between them.Documentation Index
Fetch the complete documentation index at: https://velas.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Creating a team
Callscoreboard.team(String name) to create a team or retrieve an existing one by the same name. It is safe to call repeatedly — if a team with that name already exists, it is returned rather than duplicated.
Setting visual properties
UsesetColor, setPrefix, and setSuffix to control how team members appear in chat and above their heads. All setter methods return the Team instance, so you can chain them.
TeamColor values: BLACK, DARK_BLUE, DARK_GREEN, DARK_AQUA, DARK_RED, DARK_PURPLE, GOLD, GRAY, DARK_GRAY, BLUE, GREEN, AQUA, RED, LIGHT_PURPLE, YELLOW, WHITE
Gameplay rules
VelaBoard exposes several gameplay rules that control how team members interact with each other and other players.| Rule | Method | Description |
|---|---|---|
| Friendly fire | setFriendlyFire(boolean) | Whether teammates can damage each other. |
| Entity friendly fire | setEntitiesFriendlyFire(boolean) | Whether entity members of the team can take damage from other team members. |
| Friendly invisibilities | setCanSeeFriendlyInvisibilities(boolean) | Whether invisible teammates appear visible to other team members. |
| Collision rule | setTeamCollisionRule(TeamCollisionRule) | Controls entity collision between members and others. |
| Name tag visibility | setNameTagVisibility(TeamNameTagVisibility) | Controls who can see member name tags. |
TeamCollisionRule values:
ALWAYS— all entities collide with team membersFOR_OWN_TEAM— only teammates collide with each otherFOR_OTHER_TEAMS— only non-teammates cause collisionsNEVER— no collision with team members
TeamNameTagVisibility values:
ALWAYS— all players can see team member name tagsFOR_OWN_TEAM— only teammates see name tagsFOR_OTHER_TEAMS— only non-teammates see name tagsNEVER— name tags are hidden from everyone
Managing members
Add or remove players and entities using the methods below.| Method | Description |
|---|---|
addPlayer(Player) | Adds a player to the team. |
removePlayer(Player) | Removes a player from the team. |
addEntity(Entity) | Adds a non-player entity to the team. |
removeEntity(Entity) | Removes an entity from the team. |
hasPlayer(Player) | Returns true if the player is on this team. |
hasEntity(Entity) | Returns true if the entity is on this team. |
scoreboard.getTeamOf: