Scoreboard

Entity Condition.

Compares the value of a scoreboard objective on the player to a specified value.

Type ID: apoli:scoreboard

Note

If the player does not have the the scoreboard objective, this condition would always return false (even if "!=" is run). You can then use the "!=" comparison in combination with the "==" comparison to test if the player does not have this objective set (for example, if a player has newly joined a world or had their objectives reset).

Caution

This condition is only effective server-side. That means client-side power types such as apoli:climbing, apoli:entity_glow, apoli:shader, etc. won't work with this.

Fields:

Field Type Default Description
objective String The name of the scoreboard objective to retrieve the value from and compare.
comparison Comparison How to compare the objective's value to the specified value.
compare_to Integer Which value to compare the objective's value to.

Example:

"condition": {
    "type": "apoli:scoreboard",
    "objective": "obj",
    "comparison": ">",
    "compare_to": 3
}

This condition will activate whenever the player has a value greater than 3 on the scoreboard objective "obj".