Component_Inventory: {
    type: "compound";
    value: {
        ChestItems?: {
            type: "list";
            value: {
                type: "compound";
                value: { Slot: { type: "byte"; value: number } }[];
            };
        };
        InventoryVersion: { type: "string"; value: string };
        LootTable: { type: "string"; value: string };
        LootTableSeed: { type: "int"; value: number };
    };
}

This component is used by minecarts with chest, minecarts with command block, minecarts with hopper, horses, donkeys, llamas, mules, pandas, and villagers.

Type declaration

  • type: "compound"
  • value: {
        ChestItems?: {
            type: "list";
            value: {
                type: "compound";
                value: { Slot: { type: "byte"; value: number } }[];
            };
        };
        InventoryVersion: { type: "string"; value: string };
        LootTable: { type: "string"; value: string };
        LootTableSeed: { type: "int"; value: number };
    }
    • OptionalChestItems?: {
          type: "list";
          value: {
              type: "compound";
              value: { Slot: { type: "byte"; value: number } }[];
          };
      }
    • InventoryVersion: { type: "string"; value: string }

      e.g. 1.17.20-beta23

    • LootTable: { type: "string"; value: string }

      Loot table to be used to fill the inventory when it is next opened, or the items are otherwise interacted with.

    • LootTableSeed: { type: "int"; value: number }

      Seed for generating the loot table. 0 or omitted uses a random seed needs testing.