Script API - v1.20.0
    Preparing search index...

    Represents the inventory of a block in the world. Used with blocks like chests.

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

    Block instance that this component pertains to.

    container: Container

    The container which holds an ItemStack.

    This property can throw when used.

    typeId: string

    Identifier of the component.

    componentId: "minecraft:inventory" = 'minecraft:inventory'

    Identifier of this component. Should always be minecraft:inventory.