Script API - v26.60.30
    Preparing search index...

    Class BlockVibrationPropertiesComponentBeta

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

    export class BlockVibrationPropertiesComponent extends BlockComponent {
    private constructor();
    static readonly componentId = 'minecraft:vibration_properties';
    getCanDampenVibrations(): boolean;
    getCanOccludeVibrations(): boolean;
    }

    Hierarchy (View Summary)

    Index
    block: Block

    Block instance that this component pertains to.

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

    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.

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

    typeId: string

    Identifier of the component.

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

    componentId: "minecraft:vibration_properties" = 'minecraft:vibration_properties'
    • 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.

      This function can throw errors.

      LocationInUnloadedChunkError

      LocationOutOfWorldBoundariesError

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

    • 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.

      This function can throw errors.

      LocationInUnloadedChunkError

      LocationOutOfWorldBoundariesError

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