Skip to main content

Scoreboard

The arc:scoreboard condition type checks if a player's score in a specific objective is within a given range.

Parameters

ParameterTypeRequiredDefaultDescription
objectivestringRequired-The scoreboard objective to check.
minintRequired-The minimum score.
maxintRequired-The maximum score.

Example

The following example rewards a player with a diamond if they break a block while their kills score is between 10 and 20.

data/my_datapack/arc/reward_for_kill_milestone.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:scoreboard",
"objective": "kills",
"min": 10,
"max": 20
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:diamond" }
}
]
}

Compatible Action Types