接口 EntityQueryScoreOptions实验性

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

interface EntityQueryScoreOptions {
    exclude?: boolean;
    maxScore?: number;
    minScore?: number;
    objective?: string;
}

属性

exclude?: boolean

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

maxScore?: number

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

minScore?: number

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

objective?: string

Identifier of the scoreboard objective to filter on.