@minecraft/server
    Preparing search index...

    Class BlockVibrationPropertiesComponentBeta

    Represents the vibration properties of a block with a 'minecraft:vibration_properties' component.

    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.

    typeId: string

    Identifier of the component.

    componentId: "minecraft:vibration_properties" = 'minecraft:vibration_properties'

    Methods

    • Beta

      Returns boolean

      Whether this block can dampen vibrations.

      Gets whether this block can dampen vibrations. Vibrations that occur on this block will be discarded by this block if it can dampen vibrations. Returns false when the block does not define a 'minecraft:vibration_properties' component.

    • Beta

      Returns boolean

      Whether this block can occlude vibrations.

      Gets whether this block can occlude vibrations. Vibrations that pass through this block will be discarded if this block can occlude vibrations. Returns false when the block does not define a 'minecraft:vibration_properties' component.