Bedrock Energistics Core
    Preparing search index...

    Interface UiItemSlotElementDefinitionBeta

    Options for defining an item slot UI element.

    This is used to store items without persistent entities. If your machine uses a persistent entity, we recommend accessing the entity's inventory directly rather than using this.

    interface UiItemSlotElementDefinition {
        allowedItems?: string[];
        emptyItemId?: string;
        index: number;
        type: "itemSlot";
    }
    Index

    Properties

    allowedItems?: string[]

    Only allow specific items in this slot.

    emptyItemId?: string

    The item ID to use when the slot is empty.

    • If not provided will fall back to "fluffyalien_energisticscore:ui_empty_slot"
    index: number
    type: "itemSlot"