Skip to content

Compare Score

Bi-entity Condition Type

Compares the score of the actor from a scoreboard objective to the score of the target from another scoreboard objective.

Type ID: eggolib:compare_score

Fields

Field Type Default Description
actor_objective String The name of the scoreboard objective that stores the score of the actor.
target_objective String The name of the scoreboard objective that stores the score of the target.
comparison Comparison "==" Determines how the scores of the actor and target are compared.

Examples

"bientity_condition": {
    "type": "eggolib:compare_score",
    "actor_objective": "a.id",
    "target_objective": "t.id",
    "comparison": "=="
}

This example will check if the score of the actor in the a.id scoreboard objective is equal to the score of the target in the t.id scoreboard objective.