Scoreboard
Compares the score of the entity (or score holder) from a specified scoreboard objective to the specified value.
Note
If the entity or score holder does not have a score from the specified scoreboard objective, this condition would return false even if the "!="
comparison is used. You can use the "!="
comparison in combination with the "=="
comparison to test if the entity or score holder does not have a score in the specified scoreboard objective.
Caution
This condition is only effective server-side, meaning that using the condition in client-sided power types will not work properly.
Fields
Field | Type | Default | Description |
---|---|---|---|
name |
String | optional | If specified, the condition will check for the score of this score holder instead of the entity. |
objective |
String | The name of the scoreobard objective to retrieve the score of the entity or score holder from. | |
comparison |
Comparison | Determines how the score of the entity or score holder should be compared to the specified value. | |
compare_to |
Integer | The value which the score of the entity or score holder should be compared to. |