Skip to main content

Team

The arc:team condition type checks if a player is on a specific scoreboard team.

Parameters​

ParameterTypeRequiredDefaultDescription
teamstringβœ…Required-The team name to check.

Example​

The following example gives players on the "blue" team a blue wool when they break a block.

data/my_datapack/arc/blue_team_reward.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:team",
"team": "blue"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:blue_wool" }
}
]
}

Compatible Action Types​