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

    Class BlockRecordPlayerComponentBeta

    Represents a block that can play a record.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    typeId: string

    Identifier of this component. Should always be minecraft:recordPlayer.

    componentId: "minecraft:recordPlayer" = 'minecraft:recordPlayer'

    Identifier of this component. Should always be minecraft:recordPlayer.

    Methods

    • Beta

      Returns void

      Clears the currently playing record of this record-playing block.

      This function can throw errors.

    • Beta

      Returns boolean

      Returns true if the record-playing block is currently playing a record.

      This function can throw errors.

    • Beta

      Parameters

      Returns void

      Sets and plays a record based on an item type.

      This function can throw errors.