Interface LecternBlockEntity

Lectern with ID = 37.

interface LecternBlockEntity {
    book?: NBT.Templates.Item<ItemWritableBookTag>;
    hasBook?: boolean;
    id: "Lectern";
    isMovable: boolean;
    page?: number;
    totalPages?: number;
    x: number;
    y: number;
    z: number;
}

Hierarchy (view full)

Properties

Standing book item, tag determines book placement.

hasBook?: boolean

If book is placed, observer detects changed block.

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

page?: number

Index of page opened on lectern, redstone comparator obtains power page / totalPages * 15.

totalPages?: number

Total pages counted in book.

x: number
y: number
z: number

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