Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
m (Fixed broken block entity data table (I forgot to increase the rowspan for the information at the top))
(23w13a)
(40 intermediate revisions by 11 users not shown)
Line 1: Line 1:
This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently [[Protocol version numbers|1.17.1, protocol 756]]) to the current pre-release (currently [[Protocol version numbers|21w44a, protocol {{Snapshot PVN|1073741872}}]]). Note that this page contains bleeding-edge information that may not be completely or correctly documented.
+
This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently [[Protocol version numbers|1.19.4, protocol 762]]) to the current pre-release (currently [[Protocol version numbers|23w13a, protocol {{Snapshot PVN|1073741952}}]]). Note that this page contains bleeding-edge information that may not be completely or correctly documented.
  
 
One who wishes to commandeer the merging of this into [[Protocol]] when an update is made must be sure to respect any changes that may have occurred to the respective packets there.
 
One who wishes to commandeer the merging of this into [[Protocol]] when an update is made must be sure to respect any changes that may have occurred to the respective packets there.
Line 12: Line 12:
  
 
=== Packets ===
 
=== Packets ===
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 20: Line 19:
 
  |-
 
  |-
 
!colspan="4"| Play clientbound
 
!colspan="4"| Play clientbound
{{PacketList|0x0A|Block Entity Data}}
+
{{PacketList|0x31|Open Sign Editor}}
{{PacketList|0x22|Chunk Data and Update Light}}
+
{{PacketList|0x6B|Feature Flags}}
|}
+
{{PacketList|0x6D|Update Recipes}}
 +
|-
 +
!colspan="4"| Play serverbound
 +
{{PacketList|0x2E|Update Sign}}
 +
|}
  
 
== New/modified data types ==
 
== New/modified data types ==
Line 52: Line 55:
 
=== Clientbound ===
 
=== Clientbound ===
  
==== Block Entity Data ====
+
==== Open Sign Editor ====
  
Sets the block entity associated with the block at the given location.
+
Sent when the client has placed a sign and is allowed to send [[#Update Sign|Update Sign]].  There must already be a sign at the given location (which the client does not do automatically) - send a [[#Block Update|Block Update]] first.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 64: Line 67:
 
  ! Notes
 
  ! Notes
 
  |-
 
  |-
  |rowspan="4"| 0x0A
+
  | rowspan="2" | 0x31
  |rowspan="4"| Play
+
  | rowspan="2" | Play
  |rowspan="4"| Client
+
  | rowspan="2" | Client
 
  | Location
 
  | Location
 
  | Position
 
  | Position
  |  
+
  |
|- {{removed}}
 
| Action
 
| Unsigned Byte
 
| The type of update to perform, see below.
 
 
  |- {{added}}
 
  |- {{added}}
  | Type
+
  | Is Front Text
 +
| Boolean
 +
| Whether the opened editor is for the front or on the back of the sign
 +
|}
 +
 
 +
==== Feature Flags ====
 +
 
 +
Used to enable and disable features, generally experimental ones, on the client.
 +
 
 +
{| class="wikitable"
 +
! Packet ID
 +
! State
 +
! Bound To
 +
! Field Name
 +
! Field Type
 +
! Notes
 +
|-
 +
| rowspan="2"| 0x6B
 +
| rowspan="2"| Play
 +
| rowspan="2"| Client
 +
| Total Features
 
  | VarInt
 
  | VarInt
  | The type of block entity
+
  | Number of features that appear in the array below.
 
  |-
 
  |-
  | NBT Data
+
  | Feature Flags
  | [[NBT|NBT Tag]]
+
  | Identifier Array
  | Data to set.  May be a TAG_END (0), in which case the block entity at the given location is removed (though this is not required since the client will remove the block entity automatically on chunk unload or block removal).
+
  |
 
  |}
 
  |}
  
==== Chunk Data and Update Light ====
+
As of {{change|1.19.4|23w12a}}, the following feature flags are available:
{{Main|Chunk Format}}
 
{{See also|#Unload Chunk}}
 
  
{{Need Info|How do biomes work now?  The biome change happened at the same time as the seed change, but it's not clear how/if biomes could be computed given that it's not the actual seed... ([https://www.reddit.com/r/Mojira/comments/e5at6i/a_discussion_for_the_changes_to_how_biomes_are/ /r/mojira discussion] which notes that it seems to be some kind of interpolation, and 3D biomes are only used in the nether)}}
+
* minecraft:vanilla - enables vanilla features</li>
 +
* minecraft:bundle - enables support for the bundle</li>
 +
* {{change|minecraft:update_1_20 - enables all the Minecraft 1.20 features that are available in 1.19.4</li>|}}
  
The server only sends skylight information for chunk pillars in the {{Minecraft Wiki|Overworld}}, it's up to the client to know in which dimension the player is currently located. You can also infer this information from the primary bitmask and the amount of uncompressed bytes sent.  This packet also sends all block entities in the chunk (though sending them is not required; it is still legal to send them with [[#Update Block Entity|Update Block Entity]] later).
+
==== Update Recipes ====
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 96: Line 115:
 
  ! State
 
  ! State
 
  ! Bound To
 
  ! Bound To
  !colspan="2"| Field Name
+
  ! colspan="2"| Field Name
  !colspan="2"| Field Type
+
  ! colspan="2"| Field Type
 
  ! Notes
 
  ! Notes
 
  |-
 
  |-
  |rowspan="32"| {{change|0x20|0x22}}
+
  | rowspan="4"| 0x6D
  |rowspan="32"| Play
+
  | rowspan="4"| Play
  |rowspan="32"| Client
+
  | rowspan="4"| Client
  |colspan="2"| Chunk X
+
  | colspan="2"| Num Recipes
  |colspan="2"| Int
+
  | colspan="2"| VarInt
  | Chunk coordinate (block coordinate divided by 16, rounded down)
+
| Number of elements in the following array.
 +
|-
 +
| rowspan="3"| Recipe
 +
  | Type
 +
| rowspan="3"| Array
 +
| Identifier
 +
| The recipe type, see below.
 +
|-
 +
| Recipe ID
 +
| Identifier
 +
|
 +
|-
 +
| Data
 +
| Varies
 +
| Additional data for the recipe.
 +
|}
 +
 
 +
Recipe types:
 +
 
 +
{| class="wikitable"
 +
! Type
 +
! Description
 +
! Data
 
  |-
 
  |-
  |colspan="2"| Chunk Z
+
  | <code>minecraft:crafting_shapeless</code>
  |colspan="2"| Int
+
| Shapeless crafting recipe. All items in the ingredient list must be present, but in any order/slot.
| Chunk coordinate (block coordinate divided by 16, rounded down)
+
| As follows:
  |- {{removed}}
+
  {| class="wikitable"
  |colspan="2"| Bit Mask Length
+
    ! Name
|colspan="2"| VarInt
+
    ! Type
  | Length of the following array
+
    ! Description
  |- {{removed}}
+
    |-
  |colspan="2"| Primary Bit Mask
+
    | Group
|colspan="2"| Array of Long
+
    | String
| BitSet with bits (world height in blocks / 16) set to 1 for every 16×16×16 chunk section whose data is included in Data. The least significant bit represents the chunk section at the bottom of the chunk column (from the lowest y to 15 blocks above).
+
    | Used to group similar recipes together in the recipe book. Tag is present in recipe JSON.
 +
    |-
 +
    |Category
 +
    |VarInt Enum
 +
    |Building = 0, Redstone = 1, Equipment = 2, Misc = 3
 +
    |-
 +
    | Ingredient count
 +
    | VarInt
 +
    | Number of elements in the following array.
 +
    |-
 +
    | Ingredients
 +
    | Array of Ingredient.
 +
    |
 +
    |-
 +
    | Result
 +
    | [[Slot]]
 +
    |
 +
    |}
 +
|-
 +
| <code>minecraft:crafting_shaped</code>
 +
| Shaped crafting recipe. All items must be present in the same pattern (which may be flipped horizontally or translated).
 +
  | As follows:
 +
  {| class="wikitable"
 +
    ! Name
 +
    ! Type
 +
    ! Description
 +
    |-
 +
    | Width
 +
    | VarInt
 +
    |
 +
    |-
 +
    | Height
 +
    | VarInt
 +
    |
 +
    |-
 +
    | Group
 +
    | String
 +
    | Used to group similar recipes together in the recipe book. Tag is present in recipe JSON.
 +
    |-
 +
    |Category
 +
    |VarInt Enum
 +
    |Building = 0, Redstone = 1, Equipment = 2, Misc = 3
 +
    |-
 +
    | Ingredients
 +
    | Array of Ingredient
 +
    | Length is <code>width * height</code>. Indexed by <code>x + (y * width)</code>.
 +
    |-
 +
    | Result
 +
    | [[Slot]]
 +
    |-
 +
    | Show notification
 +
    | Boolean
 +
    | Show a toast when the recipe is [[Protocol#Update_Recipe_Book|added]].
 +
    |}
 +
  |-
 +
  | <code>minecraft:crafting_special_armordye</code>
 +
| Recipe for dying leather armor
 +
| rowspan="14" | As follows:
 +
  {| class="wikitable"
 +
    ! Name
 +
    ! Type
 +
    ! Description
 +
    |-
 +
    |Category
 +
    |VarInt Enum
 +
    |Building = 0, Redstone = 1, Equipment = 2, Misc = 3
 +
    |}
 +
|-
 +
| <code>minecraft:crafting_special_bookcloning</code>
 +
  | Recipe for copying contents of written books
 +
|-
 +
| <code>minecraft:crafting_special_mapcloning</code>
 +
| Recipe for copying maps
 +
|-
 +
| <code>minecraft:crafting_special_mapextending</code>
 +
| Recipe for adding paper to maps
 +
|-
 +
| <code>minecraft:crafting_special_firework_rocket</code>
 +
| Recipe for making firework rockets
 +
|-
 +
| <code>minecraft:crafting_special_firework_star</code>
 +
| Recipe for making firework stars
 +
|-
 +
| <code>minecraft:crafting_special_firework_star_fade</code>
 +
| Recipe for making firework stars fade between multiple colors
 +
|-
 +
| <code>minecraft:crafting_special_repairitem</code>
 +
| Recipe for repairing items via crafting
 +
|-
 +
| <code>minecraft:crafting_special_tippedarrow</code>
 +
| Recipe for crafting tipped arrows
 +
|-
 +
| <code>minecraft:crafting_special_bannerduplicate</code>
 +
| Recipe for copying banner patterns
 +
|-
 +
| <code>minecraft:crafting_special_shielddecoration</code>
 +
| Recipe for applying a banner's pattern to a shield
 +
|-
 +
| <code>minecraft:crafting_special_shulkerboxcoloring</code>
 +
| Recipe for recoloring a shulker box
 +
|-
 +
| <code>minecraft:crafting_special_suspiciousstew</code>
 +
| Recipe for crafting suspicious stews
 +
  |-
 +
| <code>minecraft:crafting_decorated_pot</code>
 +
| Recipe for crafting decorated pots
 +
{{change|{{Warning|The Notchian server only sends this recipe if [[Protocol#Feature_Flags|feature flag]] '''update_1_20''' was enabled}}|}}
 +
|-
 +
| <code>minecraft:smelting</code>
 +
  | Smelting recipe
 +
| rowspan="4"| As follows:
 +
  {| class="wikitable"
 +
    ! Name
 +
    ! Type
 +
    ! Description
 +
    |-
 +
    | Group
 +
    | String
 +
    | Used to group similar recipes together in the recipe book.
 +
    |-
 +
    |Category
 +
    |VarInt Enum
 +
    |Food = 0, Blocks = 1, Misc = 2
 +
    |-
 +
    | Ingredient
 +
    | Ingredient
 +
    |
 +
    |-
 +
    | Result
 +
    | [[Slot]]
 +
    |
 +
    |-
 +
    | Experience
 +
    | Float
 +
    |
 +
    |-
 +
    | Cooking time
 +
    | VarInt
 +
    |
 +
    |}
 +
|-
 +
| <code>minecraft:blasting</code>
 +
| Blast furnace recipe
 +
|-
 +
| <code>minecraft:smoking</code>
 +
| Smoker recipe
 +
|-
 +
| <code>minecraft:campfire_cooking</code>
 +
| Campfire recipe
 
  |-
 
  |-
  |colspan="2"| Heightmaps
+
  | <code>minecraft:stonecutting</code>
  |colspan="2"| [[NBT]]
+
| Stonecutter recipe
| Compound containing one long array named <code>MOTION_BLOCKING</code>, which is a heightmap for the highest solid block at each position in the chunk (as a compacted long array with 256 entries at 9 bits per entry totaling 36 longs). The Notchian server also adds a <code>WORLD_SURFACE</code> long array, the purpose of which is unknown, but it's not required for the chunk to be accepted.
+
  | As follows:
|- {{removed}}
+
  {| class="wikitable"
|colspan="2"| Biomes length
+
    ! Name
|colspan="2"| VarInt
+
    ! Type
| Size of the following array; should always be 1024.  {{change|Not present if full chunk is false.|}}
+
    ! Description
 +
    |-
 +
    | Group
 +
    | String
 +
    | Used to group similar recipes together in the recipe book. Tag is present in recipe JSON.
 +
    |-
 +
    | Ingredient
 +
    | Ingredient
 +
    |
 +
    |-
 +
    | Result
 +
    | [[Slot]]
 +
    |
 +
    |}
 
  |- {{removed}}
 
  |- {{removed}}
  |colspan="2"| Biomes
+
  | <code>minecraft:smithing</code>
  |colspan="2"| Array of VarInt
+
  | Smithing table recipe
| 1024 biome IDs, ordered by x then z then y, in 4&times;4&times;4 blocks.  {{change|Not present if full chunk is false.|}}  See [[Chunk Format#Biomes|Chunk Format § Biomes]].
+
{{Warning|The Notchian server only sends this recipe if [[Protocol#Feature_Flags|feature flag]] '''update_1_20''' was '''not''' enabled}}
  |-
+
  | As follows:
|colspan="2"| Size
+
  {| class="wikitable"
|colspan="2"| VarInt
+
    ! Name
| Size of Data in bytes
+
    ! Type
 +
    ! Description
 +
    |-
 +
    | Base
 +
    | Ingredient
 +
    | First item.
 +
    |-
 +
    | Addition
 +
    | Ingredient
 +
    | Second item.
 +
    |-
 +
    | Result
 +
    | [[Slot]]
 +
    |
 +
    |}
 
  |-
 
  |-
  |colspan="2"| Data
+
  | <code>minecraft:smithing_transform</code>
  |colspan="2"| Byte array
+
| Recipe for smithing netherite gear
| See [[Chunk Format#Data structure|data structure]] in Chunk Format
+
{{change|{{Warning2|The Notchian server only sends this recipe if [[Protocol#Feature_Flags|feature flag]] '''update_1_20''' was enabled. It supersedes the <code>minecraft:smithing</code> recipe type}}|}}
 +
  | As follows:
 +
  {| class="wikitable"
 +
    ! Name
 +
    ! Type
 +
    ! Description
 +
    |-
 +
    | Template
 +
    | Ingredient
 +
    | The smithing template.
 +
    |-
 +
    | Base
 +
    | Ingredient
 +
    | The base item.
 +
    |-
 +
    | Addition
 +
    | Ingredient
 +
    | The additional ingredient.
 +
    |-
 +
    | Result
 +
    | [[Slot]]
 +
    |
 +
    |}
 
  |-
 
  |-
  |colspan="2"| Number of block entities
+
  | <code>minecraft:smithing_trim</code>
|colspan="2"| VarInt
+
| Recipe for applying armor trims
| Number of elements in the following array
+
{{change|{{Warning2|The Notchian server only sends this recipe if [[Protocol#Feature_Flags|feature flag]] '''update_1_20''' was enabled. It supersedes the <code>minecraft:smithing</code> recipe type}}|}}
|- {{removed}}
+
  | As follows:
  |colspan="2"| Block entities
+
  {| class="wikitable"
|colspan="2"| Array of [[NBT|NBT Tag]]
+
    ! Name
| All block entities in the chunk.  Use the x, y, and z tags in the NBT to determine their positions.
+
    ! Type
|- {{added}}
+
    ! Description
|rowspan="4" | Block Entity
+
    |-
| Packed XZ
+
    | Template
|rowspan="4" | Array
+
    | Ingredient
| Byte
+
    | The smithing template.
| The packed section coordinates, calculated from ((blockX & 15) << 4) | (blockZ & 15)
+
    |-
  |- {{added}}
+
    | Base
  | Y
+
    | Ingredient
  | Short
+
    | The base item.
  | The height relative to the world
+
    |-
  |- {{added}}
+
    | Addition
  | Type
+
    | Ingredient
 +
    | The additional ingredient.
 +
    |}
 +
  |}
 +
 
 +
Ingredient is defined as:
 +
 
 +
{| class="wikitable"
 +
  ! Name
 +
  ! Type
 +
  ! Description
 +
  |-
 +
  | Count
 
  | VarInt
 
  | VarInt
  | The type of block entity
+
  | Number of elements in the following array.
|- {{added}}
+
  |-
| Data
+
  | Items
| [[NBT]]
+
  | Array of [[Slot]]
| The block entity's data, without the X, Y, and Z values
+
  | Any item in this array may be used for the recipe. The count of each item should be 1.
|- {{added}}
 
|colspan="2"| Trust Edges
 
|colspan="2"| Boolean
 
| If edges should be trusted for light updates.
 
|- {{added}}
 
|colspan="2"| Length 1
 
|colspan="2"| VarInt
 
| Length of the following array
 
|- {{added}}
 
|colspan="2"| Sky Light Mask
 
|colspan="2"| Array of Long
 
| BitSet containing bits for each sections in the world + 2 (lowest bit 16-1 blocks below min world height, highest 1-16 above max world height)
 
|- {{added}}
 
|colspan="2"| Length 2
 
|colspan="2"| VarInt
 
| Length of the following array
 
  |- {{added}}
 
  |colspan="2"| Block Light Mask
 
  |colspan="2"| Array of Long
 
  | BitSet containing bits for each sections in the world + 2, same order as sky light
 
|- {{added}}
 
|colspan="2"| Length 3
 
|colspan="2"| VarInt
 
| Length of the following array
 
|- {{added}}
 
|colspan="2"| Empty Sky Light Mask
 
|colspan="2"| Array of Long
 
| BitSet containing a variable amount of bits (see sky/block light) which indicates sections that have 0 for all their sky light values
 
|- {{added}}
 
|colspan="2"| Length 4
 
|colspan="2"| VarInt
 
| Length of the following array
 
  |- {{added}}
 
|colspan="2"| Empty Block Light Mask
 
|colspan="2"| Array of Long
 
| BitSet containing a variable amount of bits (see sky/block light) which indicates sections that have 0 for all their block light values
 
|- {{added}}
 
|colspan="2"| Sky Light array count
 
|colspan="2"| VarInt
 
| Number of entries in the following array
 
|- {{added}}
 
|rowspan="2"| Sky Light arrays
 
| Length
 
|rowspan="2"| Array
 
| VarInt
 
| Length of the following array in bytes (always 2048)
 
|- {{added}}
 
| Sky Light array
 
| Array of 2048 bytes
 
| There is 1 array for each bit set to true in the sky light mask, starting with the lowest value.  Half a byte per light value.
 
|- {{added}}
 
|colspan="2"| Block Light array count
 
|colspan="2"| VarInt
 
| Number of entries in the following array
 
|- {{added}}
 
|rowspan="2"| Block Light arrays
 
| Length
 
|rowspan="2"| Array
 
| VarInt
 
| Length of the following array in bytes (always 2048)
 
|- {{added}}
 
| Block Light array
 
| Array of 2048 bytes
 
| There is 1 array for each bit set to true in the block light mask, starting with the lowest value.  Half a byte per light value.
 
 
  |}
 
  |}
  
Note that the Notchian client requires an [[#Update View Position|Update View Position]] packet when it crosses a chunk border, otherwise it'll only display render distance + 2 chunks around the chunk it spawned in.
+
=== Serverbound ===
  
The compacted array format has been adjusted so that individual entries no longer span across multiple longs, affecting the main data array and heightmaps.
+
==== Update Sign ====
  
New format, 5 bits per block, containing the following references to blocks in a palette (not shown): <span style="border: solid 2px hsl(0, 90%, 60%)">1</span><span style="border: solid 2px hsl(30, 90%, 60%)">2</span><span style="border: solid 2px hsl(60, 90%, 60%)">2</span><span style="border: solid 2px hsl(90, 90%, 60%)">3</span><span style="border: solid 2px hsl(120, 90%, 60%)">4</span><span style="border: solid 2px hsl(150, 90%, 60%)">4</span><span style="border: solid 2px hsl(180, 90%, 60%)">5</span><span style="border: solid 2px hsl(210, 90%, 60%)">6</span><span style="border: solid 2px hsl(240, 90%, 60%)">6</span><span style="border: solid 2px hsl(270, 90%, 60%)">4</span><span style="border: solid 2px hsl(300, 90%, 60%)">8</span><span style="border: solid 2px hsl(330, 90%, 60%)">0</span><span style="border: solid 2px hsl(0, 90%, 30%)">7</span><span style="border: solid 2px hsl(30, 90%, 30%)">4</span><span style="border: solid 2px hsl(60, 90%, 30%)">3</span><span style="border: solid 2px hsl(90, 90%, 30%)">13</span><span style="border: solid 2px hsl(120, 90%, 30%)">15</span><span style="border: solid 2px hsl(150, 90%, 30%)">16</span><span style="border: solid 2px hsl(180, 90%, 30%)">9</span><span style="border: solid 2px hsl(210, 90%, 30%)">14</span><span style="border: solid 2px hsl(240, 90%, 30%)">10</span><span style="border: solid 2px hsl(270, 90%, 30%)">12</span><span style="border: solid 2px hsl(300, 90%, 30%)">0</span><span style="border: solid 2px hsl(330, 90%, 30%)">2</span>
+
This message is sent from the client to the server when the “Done” button is pushed after placing a sign.
  
<code>0020863148418841</code> <code><span style="outline: dashed 2px black">0000</span><span style="outline: solid 2px hsl(330, 90%, 60%)">00000</span><span style="outline: solid 2px hsl(300, 90%, 60%)">01000</span><span style="outline: solid 2px hsl(270, 90%, 60%)">00100</span><span style="outline: solid 2px hsl(240, 90%, 60%)">00110</span><span style="outline: solid 2px hsl(210, 90%, 60%)">00110</span><span style="outline: solid 2px hsl(180, 90%, 60%)">00101</span><span style="outline: solid 2px hsl(150, 90%, 60%)">00100</span><span style="outline: solid 2px hsl(120, 90%, 60%)">00100</span><span style="outline: solid 2px hsl(90, 90%, 60%)">00011</span><span style="outline: solid 2px hsl(60, 90%, 60%)">00010</span><span style="outline: solid 2px hsl(30, 90%, 60%)">00010</span><span style="outline: solid 2px hsl(0, 90%, 60%)">00001</span></code><br>
+
The server only accepts this packet after [[#Open Sign Editor|Open Sign Editor]], otherwise this packet is silently ignored.
<code>01018A7260F68C87</code> <code><span style="outline: dashed 2px black">0000</span><span style="outline: solid 2px hsl(330, 90%, 30%)">00010</span><span style="outline: solid 2px hsl(300, 90%, 30%)">00000</span><span style="outline: solid 2px hsl(270, 90%, 30%)">01100</span><span style="outline: solid 2px hsl(240, 90%, 30%)">01010</span><span style="outline: solid 2px hsl(210, 90%, 30%)">01110</span><span style="outline: solid 2px hsl(180, 90%, 30%)">01001</span><span style="outline: solid 2px hsl(150, 90%, 30%)">10000</span><span style="outline: solid 2px hsl(120, 90%, 30%)">01111</span><span style="outline: solid 2px hsl(90, 90%, 30%)">01101</span><span style="outline: solid 2px hsl(60, 90%, 30%)">00011</span><span style="outline: solid 2px hsl(30, 90%, 30%)">00100</span><span style="outline: solid 2px hsl(0, 90%, 30%)">00111</span></code>
 
  
=== Serverbound ===
+
{| class="wikitable"
 
+
! Packet ID
No changes so far.
+
! State
 +
! Bound To
 +
! Field Name
 +
! Field Type
 +
! Notes
 +
|-
 +
| rowspan="6"| 0x2E
 +
| rowspan="6"| Play
 +
| rowspan="6"| Server
 +
| Location
 +
| Position
 +
| Block Coordinates.
 +
|- {{added}}
 +
| Is Front Text
 +
| Boolean
 +
| Whether the updated text is in front or on the back of the sign
 +
|-
 +
| Line 1
 +
| String (384)
 +
| First line of text in the sign.
 +
|-
 +
| Line 2
 +
| String (384)
 +
| Second line of text in the sign.
 +
|-
 +
| Line 3
 +
| String (384)
 +
| Third line of text in the sign.
 +
|-
 +
| Line 4
 +
| String (384)
 +
| Fourth line of text in the sign.
 +
|}
  
 
== Status ==
 
== Status ==

Revision as of 00:12, 30 March 2023

This page documents the changes from the last stable Minecraft release (currently 1.19.4, protocol 762) to the current pre-release (currently 23w13a, protocol Snapshot 128). Note that this page contains bleeding-edge information that may not be completely or correctly documented.

One who wishes to commandeer the merging of this into Protocol when an update is made must be sure to respect any changes that may have occurred to the respective packets there.

Contents

Data types

No changes so far.

Packets

ID Packet name Documentation
Play clientbound
0x31 Open Sign Editor Current Pre
0x6B Feature Flags Current Pre
0x6D Update Recipes Current Pre
Play serverbound
0x2E Update Sign Current Pre

New/modified data types

No changes so far.

Entity Metadata

No changes so far.

Entity

No changes so far.

Block Actions

No changes so far.

Inventories

No changes so far.

Plugin Channels

No changes so far.

Play

Clientbound

Open Sign Editor

Sent when the client has placed a sign and is allowed to send Update Sign. There must already be a sign at the given location (which the client does not do automatically) - send a Block Update first.

Packet ID State Bound To Field Name Field Type Notes
0x31 Play Client Location Position
Is Front Text Boolean Whether the opened editor is for the front or on the back of the sign

Feature Flags

Used to enable and disable features, generally experimental ones, on the client.

Packet ID State Bound To Field Name Field Type Notes
0x6B Play Client Total Features VarInt Number of features that appear in the array below.
Feature Flags Identifier Array

As of 1.19.4 23w12a, the following feature flags are available:

  • minecraft:vanilla - enables vanilla features
  • minecraft:bundle - enables support for the bundle
  • minecraft:update_1_20 - enables all the Minecraft 1.20 features that are available in 1.19.4

Update Recipes

Packet ID State Bound To Field Name Field Type Notes
0x6D Play Client Num Recipes VarInt Number of elements in the following array.
Recipe Type Array Identifier The recipe type, see below.
Recipe ID Identifier
Data Varies Additional data for the recipe.

Recipe types:

Type Description Data
minecraft:crafting_shapeless Shapeless crafting recipe. All items in the ingredient list must be present, but in any order/slot. As follows:
Name Type Description
Group String Used to group similar recipes together in the recipe book. Tag is present in recipe JSON.
Category VarInt Enum Building = 0, Redstone = 1, Equipment = 2, Misc = 3
Ingredient count VarInt Number of elements in the following array.
Ingredients Array of Ingredient.
Result Slot
minecraft:crafting_shaped Shaped crafting recipe. All items must be present in the same pattern (which may be flipped horizontally or translated). As follows:
Name Type Description
Width VarInt
Height VarInt
Group String Used to group similar recipes together in the recipe book. Tag is present in recipe JSON.
Category VarInt Enum Building = 0, Redstone = 1, Equipment = 2, Misc = 3
Ingredients Array of Ingredient Length is width * height. Indexed by x + (y * width).
Result Slot
Show notification Boolean Show a toast when the recipe is added.
minecraft:crafting_special_armordye Recipe for dying leather armor As follows:
Name Type Description
Category VarInt Enum Building = 0, Redstone = 1, Equipment = 2, Misc = 3
minecraft:crafting_special_bookcloning Recipe for copying contents of written books
minecraft:crafting_special_mapcloning Recipe for copying maps
minecraft:crafting_special_mapextending Recipe for adding paper to maps
minecraft:crafting_special_firework_rocket Recipe for making firework rockets
minecraft:crafting_special_firework_star Recipe for making firework stars
minecraft:crafting_special_firework_star_fade Recipe for making firework stars fade between multiple colors
minecraft:crafting_special_repairitem Recipe for repairing items via crafting
minecraft:crafting_special_tippedarrow Recipe for crafting tipped arrows
minecraft:crafting_special_bannerduplicate Recipe for copying banner patterns
minecraft:crafting_special_shielddecoration Recipe for applying a banner's pattern to a shield
minecraft:crafting_special_shulkerboxcoloring Recipe for recoloring a shulker box
minecraft:crafting_special_suspiciousstew Recipe for crafting suspicious stews
minecraft:crafting_decorated_pot Recipe for crafting decorated pots

Warning.png The Notchian server only sends this recipe if feature flag update_1_20 was enabled

minecraft:smelting Smelting recipe As follows:
Name Type Description
Group String Used to group similar recipes together in the recipe book.
Category VarInt Enum Food = 0, Blocks = 1, Misc = 2
Ingredient Ingredient
Result Slot
Experience Float
Cooking time VarInt
minecraft:blasting Blast furnace recipe
minecraft:smoking Smoker recipe
minecraft:campfire_cooking Campfire recipe
minecraft:stonecutting Stonecutter recipe As follows:
Name Type Description
Group String Used to group similar recipes together in the recipe book. Tag is present in recipe JSON.
Ingredient Ingredient
Result Slot
minecraft:smithing Smithing table recipe

Warning.png The Notchian server only sends this recipe if feature flag update_1_20 was not enabled

As follows:
Name Type Description
Base Ingredient First item.
Addition Ingredient Second item.
Result Slot
minecraft:smithing_transform Recipe for smithing netherite gear

Warning.png The Notchian server only sends this recipe if feature flag update_1_20 was enabled. It supersedes the minecraft:smithing recipe type

As follows:
Name Type Description
Template Ingredient The smithing template.
Base Ingredient The base item.
Addition Ingredient The additional ingredient.
Result Slot
minecraft:smithing_trim Recipe for applying armor trims

Warning.png The Notchian server only sends this recipe if feature flag update_1_20 was enabled. It supersedes the minecraft:smithing recipe type

As follows:
Name Type Description
Template Ingredient The smithing template.
Base Ingredient The base item.
Addition Ingredient The additional ingredient.

Ingredient is defined as:

Name Type Description
Count VarInt Number of elements in the following array.
Items Array of Slot Any item in this array may be used for the recipe. The count of each item should be 1.

Serverbound

Update Sign

This message is sent from the client to the server when the “Done” button is pushed after placing a sign.

The server only accepts this packet after Open Sign Editor, otherwise this packet is silently ignored.

Packet ID State Bound To Field Name Field Type Notes
0x2E Play Server Location Position Block Coordinates.
Is Front Text Boolean Whether the updated text is in front or on the back of the sign
Line 1 String (384) First line of text in the sign.
Line 2 String (384) Second line of text in the sign.
Line 3 String (384) Third line of text in the sign.
Line 4 String (384) Fourth line of text in the sign.

Status

Clientbound

No changes so far.

Serverbound

No changes so far.

Login

Clientbound

No changes so far.

Serverbound

No changes so far.