← Back to Index

ItemStackResponsePacket (148)

Server auth inventory item transaction response, sent from the server.
Field Name Type Field Index Description
Responses (Required) array<ItemStackResponseInfo> 0 The list of item stack response info.

ItemStackResponseInfo (Array Item)

Field Name Type Field Index Description
Result (Required) uint8 0 The result of the item stack request. When not Success, the Containers optional carries no value.
Enum Values:
Index Value
0 Success
1 Error
2 InvalidRequestActionType
3 ActionRequestNotAllowed
4 ScreenHandlerEndRequestFailed
5 ItemRequestActionHandlerCommitFailed
6 InvalidRequestCraftActionType
7 InvalidCraftRequest
8 InvalidCraftRequestScreen
9 InvalidCraftResult
10 InvalidCraftResultIndex
11 InvalidCraftResultItem
12 InvalidItemNetId
13 MissingCreatedOutputContainer
14 FailedToSetCreatedItemOutputSlot
15 RequestAlreadyInProgress
16 FailedToInitSparseContainer
17 ResultTransferFailed
18 ExpectedItemSlotNotFullyConsumed
19 ExpectedAnywhereItemNotFullyConsumed
20 ItemAlreadyConsumedFromSlot
21 ConsumedTooMuchFromSlot
22 MismatchSlotExpectedConsumedItem
23 MismatchSlotExpectedConsumedItemNetIdVariant
24 FailedToMatchExpectedSlotConsumedItem
25 FailedToMatchExpectedAllowedAnywhereConsumedItem
26 ConsumedItemOutOfAllowedSlotRange
27 ConsumedItemNotAllowed
28 PlayerNotInCreativeMode
29 InvalidExperimentalRecipeRequest
30 FailedToCraftCreative
31 FailedToGetLevelRecipe
32 FailedToFindRecipeByNetId
33 MismatchedCraftingSize
34 MissingInputSparseContainer
35 MismatchedRecipeForInputGridItems
36 EmptyCraftResults
37 FailedToEnchant
38 MissingInputItem
39 InsufficientPlayerLevelToEnchant
40 MissingMaterialItem
41 MissingActor
42 UnknownPrimaryEffect
43 PrimaryEffectOutOfRange
44 PrimaryEffectUnavailable
45 SecondaryEffectOutOfRange
46 SecondaryEffectUnavailable
47 DstContainerEqualToCreatedOutputContainer
48 DstContainerAndSlotEqualToSrcContainerAndSlot
49 FailedToValidateSrcSlot
50 FailedToValidateDstSlot
51 InvalidAdjustedAmount
52 InvalidItemSetType
53 InvalidTransferAmount
54 CannotSwapItem
55 CannotPlaceItem
56 UnhandledItemSetType
57 InvalidRemovedAmount
58 InvalidRegion
59 CannotDropItem
60 CannotDestroyItem
61 InvalidSourceContainer
62 ItemNotConsumed
63 InvalidNumCrafts
64 InvalidCraftResultStackSize
65 CannotRemoveItem
66 CannotConsumeItem
67 ScreenStackError
Client Request Id (Required) ItemStackRequestId 1 The client request ID this response is for.

ItemStackRequestId

Field Name Type Field Index Description
ID (Required) varint32 0 Raw Id (32 bit signed)
Containers array<ItemStackResponseContainerInfo> 2 Container slot info for successful responses. Encoded as an optional: a presence byte is always written, followed by the value only when Result == Success.

ItemStackResponseContainerInfo (Array Item)

Field Name Type Field Index Description
Full Container Name (Required) FullContainerName 0 The full container name.

FullContainerName

Field Name Type Field Index Description
Container Name (Required) uint8 0
Enum Values:
Index Value
0 AnvilInputContainer
1 AnvilMaterialContainer
2 AnvilResultPreviewContainer
3 SmithingTableInputContainer
4 SmithingTableMaterialContainer
5 SmithingTableResultPreviewContainer
6 ArmorContainer
7 LevelEntityContainer
8 BeaconPaymentContainer
9 BrewingStandInputContainer
10 BrewingStandResultContainer
11 BrewingStandFuelContainer
12 CombinedHotbarAndInventoryContainer
13 CraftingInputContainer
14 CraftingOutputPreviewContainer
15 RecipeConstructionContainer
16 RecipeNatureContainer
17 RecipeItemsContainer
18 RecipeFoodContainer
19 RecipeBlocksContainer
20 RecipeFurnaceItemsContainer
21 RecipeSearchContainer
22 RecipeSearchBarContainer
23 RecipeEquipmentContainer
24 RecipeBookContainer
25 EnchantingInputContainer
26 EnchantingMaterialContainer
27 FurnaceFuelContainer
28 FurnaceIngredientContainer
29 FurnaceResultContainer
30 HorseEquipContainer
31 HotbarContainer
32 InventoryContainer
33 ShulkerBoxContainer
34 TradeIngredient1Container
35 TradeIngredient2Container
36 TradeResultPreviewContainer
37 OffhandContainer
38 CompoundCreatorInput
39 CompoundCreatorOutputPreview
40 ElementConstructorOutputPreview
41 MaterialReducerInput
42 MaterialReducerOutput
43 LabTableInput
44 LoomInputContainer
45 LoomDyeContainer
46 LoomMaterialContainer
47 LoomResultPreviewContainer
48 BlastFurnaceIngredientContainer
49 SmokerIngredientContainer
50 Trade2Ingredient1Container
51 Trade2Ingredient2Container
52 Trade2ResultPreviewContainer
53 GrindstoneInputContainer
54 GrindstoneAdditionalContainer
55 GrindstoneResultPreviewContainer
56 StonecutterInputContainer
57 StonecutterResultPreviewContainer
58 CartographyInputContainer
59 CartographyAdditionalContainer
60 CartographyResultPreviewContainer
61 BarrelContainer
62 CursorContainer
63 CreatedOutputContainer
64 SmithingTableTemplateContainer
65 CrafterLevelEntityContainer
66 DynamicContainer
Dynamic ID (Required) uint32 1
Slots (Required) array<ItemStackResponseSlotInfo> 1 The slot info for each affected slot.

ItemStackResponseSlotInfo (Array Item)

Field Name Type Field Index Description
Requested Slot (Required) uint8 0 The slot index that was requested.
Slot (Required) uint8 1 The actual slot index.
Amount (Required) uint8 2 The item amount in the slot. When zero, the Item Stack Net Id optional carries no value (a single presence byte of 0 is still written).
Item Stack Net Id ItemStackNetId 3 The server net ID for the item stack. Encoded as an optional: a presence byte is always written, followed by the value only when Amount > 0.

ItemStackNetId

Field Name Type Field Index Description
ID (Required) varint32 0 Raw Id (32 bit signed)
Custom Name (Required) Bedrock::Safety::RedactableString 4 The custom name of the item.

Bedrock::Safety::RedactableString

Field Name Type Field Index Description
Unredacted (Required) string 0
Redacted string 1
Durability Correction (Required) varint32 5 Durability correction value, encoded as a zigzag VarInt32 on the wire. Must fit in an int16_t.