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

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

    Index

    Properties

    container: Container

    The container which holds an ItemStack.

    This property can throw when used.

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

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