← 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. 18RecipeFoodContainer
          20. 19RecipeBlocksContainer
          21. 20RecipeFurnaceItemsContainer
          22. 21RecipeSearchContainer
          23. 22RecipeSearchBarContainer
          24. 23RecipeEquipmentContainer
          25. 24RecipeBookContainer
          26. 25EnchantingInputContainer
          27. 26EnchantingMaterialContainer
          28. 27FurnaceFuelContainer
          29. 28FurnaceIngredientContainer
          30. 29FurnaceResultContainer
          31. 30HorseEquipContainer
          32. 31HotbarContainer
          33. 32InventoryContainer
          34. 33ShulkerBoxContainer
          35. 34TradeIngredient1Container
          36. 35TradeIngredient2Container
          37. 36TradeResultPreviewContainer
          38. 37OffhandContainer
          39. 38CompoundCreatorInput
          40. 39CompoundCreatorOutputPreview
          41. 40ElementConstructorOutputPreview
          42. 41MaterialReducerInput
          43. 42MaterialReducerOutput
          44. 43LabTableInput
          45. 44LoomInputContainer
          46. 45LoomDyeContainer
          47. 46LoomMaterialContainer
          48. 47LoomResultPreviewContainer
          49. 48BlastFurnaceIngredientContainer
          50. 49SmokerIngredientContainer
          51. 50Trade2Ingredient1Container
          52. 51Trade2Ingredient2Container
          53. 52Trade2ResultPreviewContainer
          54. 53GrindstoneInputContainer
          55. 54GrindstoneAdditionalContainer
          56. 55GrindstoneResultPreviewContainer
          57. 56StonecutterInputContainer
          58. 57StonecutterResultPreviewContainer
          59. 58CartographyInputContainer
          60. 59CartographyAdditionalContainer
          61. 60CartographyResultPreviewContainer
          62. 61BarrelContainer
          63. 62CursorContainer
          64. 63CreatedOutputContainer
          65. 64SmithingTableTemplateContainer
          66. 65CrafterLevelEntityContainer
          67. 66DynamicContainer
        2. 1Dynamic IDuint32
      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.

Released
Protocol
2225

Packet

1 entry

Changed 1

ItemStackResponsePacket54 changes · ID 148
  • Changed supporting type ContainerEnumName: Added enum value ReservedContainerA with value 67.
  • Changed supporting type ContainerEnumName: Added enum value ReservedContainerB with value 68.
  • Changed supporting type ContainerEnumName: Added enum value ReservedContainerC with value 69.
  • Changed supporting type ContainerEnumName: Added enum value ReservedContainerD with value 70.
  • Changed supporting type ContainerEnumName: Changed enum value RecipeFoodContainer from 18 to 64.
  • Changed supporting type ContainerEnumName: Changed enum value RecipeBlocksContainer from 19 to 65.
  • Changed supporting type ContainerEnumName: Changed enum value RecipeFurnaceItemsContainer from 20 to 66.
  • Changed supporting type ContainerEnumName: Changed enum value RecipeSearchContainer from 21 to 18.
  • Changed supporting type ContainerEnumName: Changed enum value RecipeSearchBarContainer from 22 to 19.
  • Changed supporting type ContainerEnumName: Changed enum value RecipeEquipmentContainer from 23 to 20.
  • Changed supporting type ContainerEnumName: Changed enum value RecipeBookContainer from 24 to 21.
  • Changed supporting type ContainerEnumName: Changed enum value EnchantingInputContainer from 25 to 22.
  • Changed supporting type ContainerEnumName: Changed enum value EnchantingMaterialContainer from 26 to 23.
  • Changed supporting type ContainerEnumName: Changed enum value FurnaceFuelContainer from 27 to 24.
  • Changed supporting type ContainerEnumName: Changed enum value FurnaceIngredientContainer from 28 to 25.
  • Changed supporting type ContainerEnumName: Changed enum value FurnaceResultContainer from 29 to 26.
  • Changed supporting type ContainerEnumName: Changed enum value HorseEquipContainer from 30 to 27.
  • Changed supporting type ContainerEnumName: Changed enum value HotbarContainer from 31 to 28.
  • Changed supporting type ContainerEnumName: Changed enum value InventoryContainer from 32 to 29.
  • Changed supporting type ContainerEnumName: Changed enum value ShulkerBoxContainer from 33 to 30.
  • Changed supporting type ContainerEnumName: Changed enum value TradeIngredient1Container from 34 to 31.
  • Changed supporting type ContainerEnumName: Changed enum value TradeIngredient2Container from 35 to 32.
  • Changed supporting type ContainerEnumName: Changed enum value TradeResultPreviewContainer from 36 to 33.
  • Changed supporting type ContainerEnumName: Changed enum value OffhandContainer from 37 to 34.
  • Changed supporting type ContainerEnumName: Changed enum value CompoundCreatorInput from 38 to 35.
  • Changed supporting type ContainerEnumName: Changed enum value CompoundCreatorOutputPreview from 39 to 36.
  • Changed supporting type ContainerEnumName: Changed enum value ElementConstructorOutputPreview from 40 to 37.
  • Changed supporting type ContainerEnumName: Changed enum value MaterialReducerInput from 41 to 38.
  • Changed supporting type ContainerEnumName: Changed enum value MaterialReducerOutput from 42 to 39.
  • Changed supporting type ContainerEnumName: Changed enum value LabTableInput from 43 to 40.
  • Changed supporting type ContainerEnumName: Changed enum value LoomInputContainer from 44 to 41.
  • Changed supporting type ContainerEnumName: Changed enum value LoomDyeContainer from 45 to 42.
  • Changed supporting type ContainerEnumName: Changed enum value LoomMaterialContainer from 46 to 43.
  • Changed supporting type ContainerEnumName: Changed enum value LoomResultPreviewContainer from 47 to 44.
  • Changed supporting type ContainerEnumName: Changed enum value BlastFurnaceIngredientContainer from 48 to 45.
  • Changed supporting type ContainerEnumName: Changed enum value SmokerIngredientContainer from 49 to 46.
  • Changed supporting type ContainerEnumName: Changed enum value Trade2Ingredient1Container from 50 to 47.
  • Changed supporting type ContainerEnumName: Changed enum value Trade2Ingredient2Container from 51 to 48.
  • Changed supporting type ContainerEnumName: Changed enum value Trade2ResultPreviewContainer from 52 to 49.
  • Changed supporting type ContainerEnumName: Changed enum value GrindstoneInputContainer from 53 to 50.
  • Changed supporting type ContainerEnumName: Changed enum value GrindstoneAdditionalContainer from 54 to 51.
  • Changed supporting type ContainerEnumName: Changed enum value GrindstoneResultPreviewContainer from 55 to 52.
  • Changed supporting type ContainerEnumName: Changed enum value StonecutterInputContainer from 56 to 53.
  • Changed supporting type ContainerEnumName: Changed enum value StonecutterResultPreviewContainer from 57 to 54.
  • Changed supporting type ContainerEnumName: Changed enum value CartographyInputContainer from 58 to 55.
  • Changed supporting type ContainerEnumName: Changed enum value CartographyAdditionalContainer from 59 to 56.
  • Changed supporting type ContainerEnumName: Changed enum value CartographyResultPreviewContainer from 60 to 57.
  • Changed supporting type ContainerEnumName: Changed enum value BarrelContainer from 61 to 58.
  • Changed supporting type ContainerEnumName: Changed enum value CursorContainer from 62 to 59.
  • Changed supporting type ContainerEnumName: Changed enum value CreatedOutputContainer from 63 to 60.
  • Changed supporting type ContainerEnumName: Changed enum value SmithingTableTemplateContainer from 64 to 61.
  • Changed supporting type ContainerEnumName: Changed enum value CrafterLevelEntityContainer from 65 to 62.
  • Changed supporting type ContainerEnumName: Changed enum value DynamicContainer from 66 to 63.
  • Changed supporting type FullContainerName: Dynamic ID is now optional.