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

    Class ScoreboardIdentity

    Contains an identity of the scoreboard item.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    displayName: string

    Returns the player-visible name of this identity.

    This property can't be read in early-execution mode.

    id: number

    Identifier of the scoreboard identity.

    This property can't be read in early-execution mode.

    isValid: boolean

    Returns true if the ScoreboardIdentity reference is still valid.

    This property can't be read in early-execution mode.

    Type of the scoreboard identity.

    This property can't be read in early-execution mode.

    Methods

    • Returns Entity

      If the scoreboard identity is an entity or player, returns the entity that this scoreboard item corresponds to.

      This function can throw errors.

      This function can't be called in early-execution mode.