Interface ItemFrameBlockEntity

ItemFrame (Item Frame) with ID = 17.

interface ItemFrameBlockEntity {
    id: "ItemFrame";
    isMovable: boolean;
    Item?: NBT.Templates.Item<ItemTag>;
    ItemDropChance?: number;
    ItemRotation?: number;
    x: number;
    y: number;
    z: number;
}

Hierarchy (view full)

Properties

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

Item to be displayed in frame, tag doesn't exist by default.

ItemDropChance?: number

Percent value between 0 and 1; everything just cool when elytra drops with chance 0.01.

1
ItemRotation?: number

Rotation angle in degress between 0 and 315 (with in-game step 45). Also changes comparator strength, triggers observers.

x: number
y: number
z: number

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