Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts

    Class in @minecraft/server

    One objective: a score for each participant.

    import { ScoreboardObjective } from '@minecraft/server';

    read-only

    readonly id: string;

    read-only

    readonly displayName: string;

    read-only

    readonly isValid: boolean;

    False once removed.

    addScore(participant: ScoreboardParticipant, scoreToAdd: number): number;
    Parameters
    participant
    ScoreboardParticipant
    scoreToAdd
    number
    Returns
    numberThe score after.
    Throws
    • If the objective has been removed.
    getParticipants(): ScoreboardIdentity[];
    Returns
    ScoreboardIdentity[]
    getScore(participant: ScoreboardParticipant): number | undefined;

    undefined if they have no score here.

    Parameters
    participant
    ScoreboardParticipant
    Returns
    number | undefined
    getScores(): ScoreboardScoreInfo[];
    Returns
    ScoreboardScoreInfo[]
    hasParticipant(participant: ScoreboardParticipant): boolean;
    Parameters
    participant
    ScoreboardParticipant
    Returns
    boolean
    removeParticipant(participant: ScoreboardParticipant): boolean;
    Parameters
    participant
    ScoreboardParticipant
    Returns
    booleanFalse if they had no score here.
    setScore(participant: ScoreboardParticipant, score: number): void;
    Parameters
    participant
    ScoreboardParticipant
    score
    number

    ScoreboardObjectiveDisplayOptions.objective, Scoreboard.addObjective, Scoreboard.removeObjective, Scoreboard.getObjective, Scoreboard.getObjectives, Scoreboard.setObjectiveAtDisplaySlot, Scoreboard.clearObjectiveAtDisplaySlot