← Type index

ShapedRecipePayload

Object datagramWire order
0Recipe Idstring · variable
1Widthvarint32 · variable (up to 5 bytes)
2Heightvarint32 · variable (up to 5 bytes)
3Ingredientsarray<RecipeIngredient> · variable
4Resultsarray<NetworkItemInstanceDescriptorData> · variable
5UUIDmce::UUID · variable
6Tagstring · variable
7Priorityvarint32 · variable (up to 5 bytes)
8Assume Symmetryboolean · 1 byte
9Unlocking RequirementRecipeUnlockingRequirement · variable
10Net IdRecipeNetId · variable

Fields

11 top-level fields
  1. 0Recipe IdUnique string identifier of the recipe.string
  2. 1WidthWidth of the crafting grid for this shaped recipe.Compressionvarint32
  3. 2HeightHeight of the crafting grid for this shaped recipe.Compressionvarint32
  4. 3IngredientsGrid ingredients in row-major order; the count must equal Width * Height.RecipeIngredientas array<RecipeIngredient>
    1. 0Item DescriptoroneOf<EmptyItemDescriptor, ItemNameDescriptor, MolangItemDescriptor, ItemTagDescriptor>
      0EmptyItemDescriptorEmptyItemDescriptor
      1. 0Descriptor TypeEmpty item descriptor.Enum-as-ValueItemDescriptorTypeas uint8
        1. 0Empty
        2. 1ItemName
        3. 2Molang
        4. 3ItemTag
      1ItemNameDescriptorItemNameDescriptor
      1. 0Descriptor TypeEnum-as-ValueItemDescriptorTypeas uint8
        1. 0Empty
        2. 1ItemName
        3. 2Molang
        4. 3ItemTag
      2. 1Full Namestring
      3. 2Aux ValueCompressionvarint32
      2MolangItemDescriptorMolangItemDescriptor
      1. 0Descriptor TypeEnum-as-ValueItemDescriptorTypeas uint8
        1. 0Empty
        2. 1ItemName
        3. 2Molang
        4. 3ItemTag
      2. 1Tag Expressionstring
      3. 2Molang VersionEnum-as-ValueMolangVersionas int16
        1. 0Invalid
        2. 1BeforeVersioning
        3. 2Initial
        4. 3FixedItemRemainingUseDurationQuery
        5. 4ExpressionErrorMessages
        6. 5UnexpectedOperatorErrors
        7. 6ConditionalOperatorAssociativity
        8. 7ComparisonAndLogicalOperatorPrecedence
        9. 8DivideByNegativeValue
        10. 9FixedCapeFlapAmountQuery
        11. 10QueryBlockPropertyRenamedToState
        12. 11DeprecateOldBlockQueryNames
        13. 12DeprecatedSnifferAndCamelQueries
        14. 13LeafSupportingInFirstSolidBlockBelow
        15. 14NumValidVersions
        16. 15Latest
        17. 16HardcodedMolang
      3ItemTagDescriptorItemTagDescriptor
      1. 0Descriptor TypeEnum-as-ValueItemDescriptorTypeas uint8
        1. 0Empty
        2. 1ItemName
        3. 2Molang
        4. 3ItemTag
      2. 1Item Tagstring
    2. 1StackSizeuint16
  5. 4ResultsThe item(s) produced by the recipe.NetworkItemInstanceDescriptorDataas array<NetworkItemInstanceDescriptorData>
    1. 0IdItem id (network varint). Send fixed Id of 0 for invalid item.Compressionvarint32
    2. 1Stack sizeThe number of items in the stack.uint16
    3. 2Aux valueItem auxiliary/metadata value. Ignored for block items where aux is always 0.Compressionvaruint32
    4. 3Block Runtime IdRuntime block state ID associated with this item when it represents a block.Compressionvarint32
    5. 4User Data BufferThe item user data binary blob encoded as a String.string
  6. 5UUIDStable unique id of the recipe.mce::UUID
    1. 0Most Significant Bitsuint64
    2. 1Least Significant Bitsuint64
  7. 6TagCrafting block tag this recipe is associated with (e.g. crafting_table).string
  8. 7PriorityRecipe priority used to resolve conflicts between matching recipes.Compressionvarint32
  9. 8Assume SymmetryWhether the recipe also matches mirrored grid layouts.boolean
  10. 9Unlocking RequirementoptionalOptional requirement that must be satisfied to unlock the recipe.RecipeUnlockingRequirement
    1. 0Unlocking ContextCompressionEnum-as-ValueRecipeUnlockingContextas varint32
      1. 0None
      2. 1AlwaysUnlocked
      3. 2PlayerInWater
      4. 3PlayerHasManyItems
    2. 1Unlocking IngredientsoptionalOptional list of ingredients required to unlock the recipe. Only populated when Unlocking Context is None; otherwise the recipe is unlocked by the context condition and no ingredients are transmitted.RecipeIngredientas array<RecipeIngredient>
      1. 0Item DescriptoroneOf<EmptyItemDescriptor, ItemNameDescriptor, MolangItemDescriptor, ItemTagDescriptor>
        0EmptyItemDescriptorEmptyItemDescriptor
        1. 0Descriptor TypeEmpty item descriptor.Enum-as-ValueItemDescriptorTypeas uint8
          1. 0Empty
          2. 1ItemName
          3. 2Molang
          4. 3ItemTag
        1ItemNameDescriptorItemNameDescriptor
        1. 0Descriptor TypeEnum-as-ValueItemDescriptorTypeas uint8
          1. 0Empty
          2. 1ItemName
          3. 2Molang
          4. 3ItemTag
        2. 1Full Namestring
        3. 2Aux ValueCompressionvarint32
        2MolangItemDescriptorMolangItemDescriptor
        1. 0Descriptor TypeEnum-as-ValueItemDescriptorTypeas uint8
          1. 0Empty
          2. 1ItemName
          3. 2Molang
          4. 3ItemTag
        2. 1Tag Expressionstring
        3. 2Molang VersionEnum-as-ValueMolangVersionas int16
          1. 0Invalid
          2. 1BeforeVersioning
          3. 2Initial
          4. 3FixedItemRemainingUseDurationQuery
          5. 4ExpressionErrorMessages
          6. 5UnexpectedOperatorErrors
          7. 6ConditionalOperatorAssociativity
          8. 7ComparisonAndLogicalOperatorPrecedence
          9. 8DivideByNegativeValue
          10. 9FixedCapeFlapAmountQuery
          11. 10QueryBlockPropertyRenamedToState
          12. 11DeprecateOldBlockQueryNames
          13. 12DeprecatedSnifferAndCamelQueries
          14. 13LeafSupportingInFirstSolidBlockBelow
          15. 14NumValidVersions
          16. 15Latest
          17. 16HardcodedMolang
        3ItemTagDescriptorItemTagDescriptor
        1. 0Descriptor TypeEnum-as-ValueItemDescriptorTypeas uint8
          1. 0Empty
          2. 1ItemName
          3. 2Molang
          4. 3ItemTag
        2. 1Item Tagstring
      2. 1StackSizeuint16
  11. 10Net IdNetwork id assigned to this recipe.RecipeNetId
    1. 0Raw IdCompressionvaruint32

Packet references

2 references
  1. CraftingDataPacket
    Shaped Chemistry Recipes › ShapedRecipePayload
  2. CraftingDataPacket
    Shaped Recipes › ShapedRecipePayload

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this type.