Interface PistonArmBlockEntity

PistonArm (Piston) with ID = 18.

interface PistonArmBlockEntity {
    AttachedBlocks: Block[];
    BreakBlocks: Block[];
    id: "PistonArm";
    isMovable: boolean;
    LastProgress: number;
    NewState: number;
    Progress: number;
    State: number;
    Sticky: boolean;
    x: number;
    y: number;
    z: number;
}

Hierarchy (view full)

Properties

AttachedBlocks: Block[]

Blocks attached to piston (excluding head) with slime and honey blocks.

BreakBlocks: Block[]

Blocks prevents piston from moving, such as obsidian.

id

Typed identifier, such as "Chest", "Beacon", etc.

isMovable: boolean

Block Entity will be saved without instantiating new one when transporting (via pistons, commands, etc.).

LastProgress: number

Latest successfully changed state progress, which determine piston movement.

NewState: number

Required by redstone state, if nothing blocking way, piston moves.

Progress: number

Percent between 0 and 1 (with in-game step 0.5), where 1 means activated.

State: number

Currently state, 0 means pulled, 1 moving and 2 pushed.

Sticky: boolean

Whether piston crafted with slime and can transfer blocks back.

x: number
y: number
z: number

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.