MCBE
OverviewPacketsItemStackRequest
ID 0x93 · 147Client → ServerInventory

ItemStackRequest

The client's authoritative request stream for every inventory/crafting/trade operation: each request has an id, a list of filtered stack operations and string filters.

item-stack-request.bin
struct ItemStackRequest {
  varuint32 [] · ItemStackRequestCereal.RequestData[] Requests;
}

Structure

FieldTypeDescription
Requestsvaruint32 count + ItemStackRequestCereal.RequestData[]Length-prefixed sequence.

Structure of RequestData

FieldTypeDescription
Client Request IdItemStackRequestId
Actionsvaruint32 count + TakeActionData | PlaceActionData | SwapActionData | DropActionData | DestroyActionData | ConsumeActionData | CreateActionData | LabTableCombineActionData | BeaconPaymentActionData | MineBlockActionData | CraftRecipeActionData | CraftRecipeAutoActionData | CraftCreativeActionData | CraftRecipeOptionalActionData | CraftRepairAndDisenchantActionData | CraftLoomActionData | CraftNonImplementedActionData | CraftResultsActionData[]Length-prefixed sequence.
Strings To Filtervaruint32 count + string[]Length-prefixed sequence.
Strings To Filter Originint32 (LE)

Structure of ItemStackRequestId

FieldTypeDescription
Raw Idvarint32

Structure of TakeActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.TAKEFixed tag written on the wire.
Amountuint8
SourceSlotInfoData
DestinationSlotInfoData

Structure of PlaceActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.PLACEFixed tag written on the wire.
Amountuint8
SourceSlotInfoData
DestinationSlotInfoData

Structure of SwapActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.SWAPFixed tag written on the wire.
SourceSlotInfoData
DestinationSlotInfoData

Structure of DropActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.DROPFixed tag written on the wire.
Amountuint8
SourceSlotInfoData
Randomlybool

Structure of DestroyActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.DESTROYFixed tag written on the wire.
Amountuint8
SourceSlotInfoData

Structure of ConsumeActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CONSUMEFixed tag written on the wire.
Amountuint8
SourceSlotInfoData

Structure of CreateActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CREATEFixed tag written on the wire.
Results Indexuint8

Structure of LabTableCombineActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.SCREEN_LAB_TABLE_COMBINEFixed tag written on the wire.

Structure of BeaconPaymentActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.SCREEN_BEACON_PAYMENTFixed tag written on the wire.
Primary Effect Idvarint32
Secondary Effect Idvarint32

Structure of MineBlockActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.SCREEN_HUD_MINE_BLOCKFixed tag written on the wire.
Slotvarint32
Predicted Durabilityvarint32
Net Id Variantint32 (LE)

Structure of CraftRecipeActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CRAFT_RECIPEFixed tag written on the wire.
Recipe Net IdRecipeNetId
Num Craftsuint8

Structure of CraftRecipeAutoActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CRAFT_RECIPE_AUTOFixed tag written on the wire.
Recipe Net IdRecipeNetId
Num Craftsuint8
Ingredientsvaruint32 count + RecipeIngredientData[]Length-prefixed sequence.

Structure of CraftCreativeActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CRAFT_CREATIVEFixed tag written on the wire.
Creative Item Net Idvaruint32
Num Craftsuint8

Structure of CraftRecipeOptionalActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CRAFT_RECIPE_OPTIONALFixed tag written on the wire.
Recipe Net IdRecipeNetId
Filtered String Indexint32 (LE)

Structure of CraftRepairAndDisenchantActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CRAFT_REPAIR_AND_DISENCHANTFixed tag written on the wire.
Recipe Net Idint32 (LE)
Num Craftsuint8
Repair Costvarint32

Structure of CraftLoomActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CRAFT_LOOMFixed tag written on the wire.
Pattern Name Idstring
Num Craftsuint8

Structure of CraftNonImplementedActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CRAFT_NON_IMPLEMENTED_DEPRECATEDASKTYLAINGFixed tag written on the wire.

Structure of CraftResultsActionData

FieldTypeDescription
Action Typeconstant ItemStackRequestActionType.CRAFT_RESULTS_DEPRECATEDASKTYLAINGFixed tag written on the wire.
Craft Resultsvaruint32 count + NetworkItemInstanceDescriptorData[]Length-prefixed sequence.
Num Craftsuint8

Notes

  • The server answers with ItemStackResponse using the same request ids.
  • Since 1.26.40 requests are cereal-serialised (ItemStackRequest.RequestData).