Script API - v1.19.70
    Preparing search index...

    Contains objectives and participants for the scoreboard.

    Index

    Constructors

    Methods

    • Beta

      Parameters

      • objectiveId: string
      • displayName: string

      Returns ScoreboardObjective

      Adds a new objective to the scoreboard.

      This function can throw errors.

    • Beta

      Parameters

      • displaySlotId: string

      Returns ScoreboardObjective

      Clears the objective that occupies a display slot.

      This function can throw errors.

    • Beta

      Parameters

      • objectiveId: string

        Identifier of the objective.

      Returns ScoreboardObjective

      Returns a specific objective (by id).

      This function can throw errors.

    • Beta

      Parameters

      Returns number

      Score value.

      Returns a score given an objective and participant.

      This function can throw errors.

    • Beta

      Parameters

      Returns boolean

      Removes an objective from the scoreboard.

      This function can throw errors.

    • Beta

      Parameters

      Returns boolean

      Sets the score given a participant and objective.

      This function can throw errors.