Skip to main content

In Team (Entity Condition Type)

Checks whether the entity is on a scoreboard team, optionally one that matches specific properties.

Type ID: apoli:in_team (alias apoli:team)

Fields

FieldTypeDefaultDescription
teamTeamoptionalA team to match against.
teamsArray of Team[]Several teams. The condition passes if any of them match.

With neither field set, the condition only checks that the entity is on some team.

Examples

On the red team:

{
  "type": "apoli:in_team",
  "team": "red"
}

On any team whose nametags are hidden:

{
  "type": "apoli:in_team",
  "team": { "nametag_visibility": "never" }
}

On any team at all:

{ "type": "apoli:in_team" }
note

If you are coming from Eggolib's eggolib:in_team, the field names and the string or object shape are the same, but an object with several fields here means all of those properties must match. Eggolib passed if any single property matched. Split the object across teams to get that behaviour.