MCBE
OverviewPacketsInventoryTransaction
ID 0x1E · 30BothInventory

InventoryTransaction

Legacy use-item/placement packet. Inventory and crafting moves went through ItemStackRequest long ago; only the UseItem transaction family still carries meaningful traffic.

inventory-transaction.bin
struct InventoryTransaction {
  varint32                                     LegacyRequestId;
  optional byte + list[LegacySetSlot]          LegacySetItemSlots;
  TransactionData                              Transaction;
}

Structure

FieldTypeDescription
Legacy Request Idvarint32
Legacy Set Item Slotsoptional byte + list[LegacySetSlot]Presence flag on the wire; value omitted when absent.
TransactionTransactionData

Structure of LegacySetSlot

FieldTypeDescription
Container EnumContainerEnumName
Slotsbyte[]

Notes

  • Types: 0 Normal, 1 Mismatch, 2 UseItem, 3 UseItemOnEntity, 4 ReleaseItem.
  • Normal/mismatch transactions are treated as violations by servers that enforce server-side inventory.
  • The legacy request id/slots pair exists for backwards compatibility with pre-1.16 clients.