Scoreboard

Entity Condition.

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

Note 1: If the player does not have 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).

Note 2: Due to the nature of scoreboards, this condition is only effective on the server-side. That means client-based powers, such as triggering active powers, climbing, or making entities glow, won't work with this.

Type ID: origins:scoreboard

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": "origins: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".