Skip to content

In Team

Entity Condition Type

Checks if the entity is in the specified team(s).

Type ID: eggolib:in_team

Note

If neither the team or teams field is present, this entity condition type will check if the entity is in any team.

Fields

Field Type Default Description
team Abstract Team optional If specified, check if the entity is in this team.
teams Array of Abstract Teams optional If specified, check if the entity is in any of these teams.

Examples

"condition": {
    "type": "eggolib:in_team"
}

This example will check if the entity is in any team.

"condition": {
    "type": "eggolib:in_team",
    "team": {
        "name": "epicGamers"
    }
}

This example will check if the entity is in a team with the name "epicGamers".

"condition": {
    "type": "eggolib:in_team",
    "teams": [
        {
            "name": "epicGamers"
        },
        {
            "nametag_visibility": "never"
        }
    ]
}

This example will check if the entity is in a team with the name "epicGamers" or a team that has the nametagVisibility option set to never.