EntityQueryScoreOptions Interface

Contains additional options for filtering players based on their score for an objective.

Properties

exclude

exclude?: boolean;

If set to true, entities and players within this score range are excluded from query results.

Type: boolean

maxScore

maxScore?: number;

If defined, only players that have a score equal to or under maxScore are included.

Type: number

minScore

minScore?: number;

If defined, only players that have a score equal to or over minScore are included.

Type: number

objective

objective?: string;

Identifier of the scoreboard objective to filter on.

Type: string