Team - From ID (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 1.16.0

Syntax

team (named|with id) %string% [(of|from) %scoreboard%]

Description

Get an instance of a team, by the id. If getting the team and it does not exist, a new team with that name will be registered. You have the option to get a team from a specific scoreboard (defaults to the main scoreboard). Teams off the main scoreboard cannot be serialized/saved to variables (This is because custom scoreboards aren't persistent).

Examples

set {_newTeam} to team with id "foo"
set team of player to team with id "bar" from {foodbar}

View source