← Packet index

Packet 148

ItemStackResponsePacket

Server auth inventory item transaction response, sent from the server.

Packet datagramWire order
HeaderID 148varuint
0Responsesarray<ItemStackResponseInfo> · variable

Serialized fields

1 top-level fields
  1. 0ResponsesThe list of item stack response info.ItemStackResponseInfoas array<ItemStackResponseInfo>
    1. 0ResultThe result of the item stack request. When not Success, the Containers optional carries no value.Enum-as-Valueuint8
      1. 0Success
      2. 1Error
      3. 2InvalidRequestActionType
      4. 3ActionRequestNotAllowed
      5. 4ScreenHandlerEndRequestFailed
      6. 5ItemRequestActionHandlerCommitFailed
      7. 6InvalidRequestCraftActionType
      8. 7InvalidCraftRequest
      9. 8InvalidCraftRequestScreen
      10. 9InvalidCraftResult
      11. 10InvalidCraftResultIndex
      12. 11InvalidCraftResultItem
      13. 12InvalidItemNetId
      14. 13MissingCreatedOutputContainer
      15. 14FailedToSetCreatedItemOutputSlot
      16. 15RequestAlreadyInProgress
      17. 16FailedToInitSparseContainer
      18. 17ResultTransferFailed
      19. 18ExpectedItemSlotNotFullyConsumed
      20. 19ExpectedAnywhereItemNotFullyConsumed
      21. 20ItemAlreadyConsumedFromSlot
      22. 21ConsumedTooMuchFromSlot
      23. 22MismatchSlotExpectedConsumedItem
      24. 23MismatchSlotExpectedConsumedItemNetIdVariant
      25. 24FailedToMatchExpectedSlotConsumedItem
      26. 25FailedToMatchExpectedAllowedAnywhereConsumedItem
      27. 26ConsumedItemOutOfAllowedSlotRange
      28. 27ConsumedItemNotAllowed
      29. 28PlayerNotInCreativeMode
      30. 29InvalidExperimentalRecipeRequest
      31. 30FailedToCraftCreative
      32. 31FailedToGetLevelRecipe
      33. 32FailedToFindRecipeByNetId
      34. 33MismatchedCraftingSize
      35. 34MissingInputSparseContainer
      36. 35MismatchedRecipeForInputGridItems
      37. 36EmptyCraftResults
      38. 37FailedToEnchant
      39. 38MissingInputItem
      40. 39InsufficientPlayerLevelToEnchant
      41. 40MissingMaterialItem
      42. 41MissingActor
      43. 42UnknownPrimaryEffect
      44. 43PrimaryEffectOutOfRange
      45. 44PrimaryEffectUnavailable
      46. 45SecondaryEffectOutOfRange
      47. 46SecondaryEffectUnavailable
      48. 47DstContainerEqualToCreatedOutputContainer
      49. 48DstContainerAndSlotEqualToSrcContainerAndSlot
      50. 49FailedToValidateSrcSlot
      51. 50FailedToValidateDstSlot
      52. 51InvalidAdjustedAmount
      53. 52InvalidItemSetType
      54. 53InvalidTransferAmount
      55. 54CannotSwapItem
      56. 55CannotPlaceItem
      57. 56UnhandledItemSetType
      58. 57InvalidRemovedAmount
      59. 58InvalidRegion
      60. 59CannotDropItem
      61. 60CannotDestroyItem
      62. 61InvalidSourceContainer
      63. 62ItemNotConsumed
      64. 63InvalidNumCrafts
      65. 64InvalidCraftResultStackSize
      66. 65CannotRemoveItem
      67. 66CannotConsumeItem
      68. 67ScreenStackError
    2. 1Client Request IdThe client request ID this response is for.ItemStackRequestId
      1. 0IDRaw Id (32 bit signed)Compressionvarint32
    3. 2ContainersoptionalContainer slot info for successful responses. Encoded as an optional: a presence byte is always written, followed by the value only when Result == Success.ItemStackResponseContainerInfoas array<ItemStackResponseContainerInfo>
      1. 0Full Container NameThe full container name.FullContainerName
        1. 0Container NameEnum-as-ValueContainerEnumNameas uint8
          1. 0AnvilInputContainer
          2. 1AnvilMaterialContainer
          3. 2AnvilResultPreviewContainer
          4. 3SmithingTableInputContainer
          5. 4SmithingTableMaterialContainer
          6. 5SmithingTableResultPreviewContainer
          7. 6ArmorContainer
          8. 7LevelEntityContainer
          9. 8BeaconPaymentContainer
          10. 9BrewingStandInputContainer
          11. 10BrewingStandResultContainer
          12. 11BrewingStandFuelContainer
          13. 12CombinedHotbarAndInventoryContainer
          14. 13CraftingInputContainer
          15. 14CraftingOutputPreviewContainer
          16. 15RecipeConstructionContainer
          17. 16RecipeNatureContainer
          18. 17RecipeItemsContainer
          19. 64RecipeFoodContainer
          20. 65RecipeBlocksContainer
          21. 66RecipeFurnaceItemsContainer
          22. 18RecipeSearchContainer
          23. 19RecipeSearchBarContainer
          24. 20RecipeEquipmentContainer
          25. 21RecipeBookContainer
          26. 22EnchantingInputContainer
          27. 23EnchantingMaterialContainer
          28. 24FurnaceFuelContainer
          29. 25FurnaceIngredientContainer
          30. 26FurnaceResultContainer
          31. 27HorseEquipContainer
          32. 28HotbarContainer
          33. 29InventoryContainer
          34. 30ShulkerBoxContainer
          35. 31TradeIngredient1Container
          36. 32TradeIngredient2Container
          37. 33TradeResultPreviewContainer
          38. 34OffhandContainer
          39. 35CompoundCreatorInput
          40. 36CompoundCreatorOutputPreview
          41. 37ElementConstructorOutputPreview
          42. 38MaterialReducerInput
          43. 39MaterialReducerOutput
          44. 40LabTableInput
          45. 41LoomInputContainer
          46. 42LoomDyeContainer
          47. 43LoomMaterialContainer
          48. 44LoomResultPreviewContainer
          49. 45BlastFurnaceIngredientContainer
          50. 46SmokerIngredientContainer
          51. 47Trade2Ingredient1Container
          52. 48Trade2Ingredient2Container
          53. 49Trade2ResultPreviewContainer
          54. 50GrindstoneInputContainer
          55. 51GrindstoneAdditionalContainer
          56. 52GrindstoneResultPreviewContainer
          57. 53StonecutterInputContainer
          58. 54StonecutterResultPreviewContainer
          59. 55CartographyInputContainer
          60. 56CartographyAdditionalContainer
          61. 57CartographyResultPreviewContainer
          62. 58BarrelContainer
          63. 59CursorContainer
          64. 60CreatedOutputContainer
          65. 61SmithingTableTemplateContainer
          66. 62CrafterLevelEntityContainer
          67. 63DynamicContainer
        2. 1Dynamic IDoptionaluint32
      2. 1SlotsThe slot info for each affected slot.ItemStackResponseSlotInfoas array<ItemStackResponseSlotInfo>
        1. 0Requested SlotThe slot index that was requested.uint8
        2. 1SlotThe actual slot index.uint8
        3. 2AmountThe 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).uint8
        4. 3Item Stack Net IdoptionalThe 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
          1. 0IDRaw Id (32 bit signed)Compressionvarint32
        5. 4Custom NameThe custom name of the item.Bedrock::Safety::RedactableString
          1. 0Unredactedstring
        6. 5Durability CorrectionDurability correction value, encoded as a zigzag VarInt32 on the wire. Must fit in an int16_t.Compressionvarint32

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.