@minecraft/server
    Preparing search index...

    Interface EntityQueryScoreOptionsBeta

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

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

    Properties

    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.