When present, this block has piston-like behavior. Contains additional properties for discovering block piston state.

Hierarchy (View Summary)

Constructors

Properties

block: Block

Block instance that this component pertains to.

isMoving: boolean

Whether the piston is in the process of expanding or retracting.

This property can throw when used.

The current state of the piston.

This property can throw when used.

typeId: string

Identifier of the component.

componentId: "minecraft:piston" = 'minecraft:piston'

Methods