@minecraft/server
    Preparing search index...

    Class BlockRedstoneProducerComponentBeta

    Represents a block that can output a redstone signal.

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

    Block instance that this component pertains to.

    isValid: boolean

    Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.

    power: number

    Gets the power that this block outputs to circuit system.

    This property can throw when used.

    InvalidBlockComponentError

    typeId: string

    Identifier of the component.

    componentId: "minecraft:redstone_producer" = 'minecraft:redstone_producer'

    Methods

    • Beta

      Returns Direction[]

      Gets the faces of this block that can connect to the circuit and output power.

      This function can throw errors.

      InvalidBlockComponentError

    • Beta

      Returns undefined | Direction

      Gets the block face that strongly powers the block touching it.

      This function can throw errors.

      InvalidBlockComponentError