Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
(Added join game simulation distance field and new simulation distance packet)
(Updated to 1.21-pre2)
 
(127 intermediate revisions by 16 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.20.6, protocol 766]]) to the current pre-release (currently [[Protocol version numbers|1.21-pre2, protocol {{Snapshot PVN|1073742024}}]]). 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 9: Line 9:
 
=== Data types ===
 
=== Data types ===
  
No changes so far.
+
No changes documented so far.
  
 
=== Packets ===
 
=== Packets ===
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 19: Line 18:
 
  !colspan="2"| Documentation
 
  !colspan="2"| Documentation
 
  |-
 
  |-
!colspan="4"| Play clientbound
+
!colspan="4"| Configuration clientbound
{{PacketList|0x0A|Block Entity Data}}
+
{{PacketList|0x0F|Clientbound Report Details (configuration)|rel=added}}
{{PacketList|0x22|Chunk Data and Update Light}}
+
{{PacketList|0x10|Clientbound Server Links (configuration)|rel=added}}
{{PacketList|0x26|Join Game}}
+
|-
{{PacketList|0x57|Update Simulation Distance|rel=added}}
+
!colspan="4"| Play clientbound
{{PacketList|{{change|0x57|0x58}}|Set Title SubTitle|rel=unchanged}}
+
{{PacketList|0x7A|Clientbound Report Details (play)|rel=added}}
{{PacketList|{{change|0x58|0x59}}|Time Update|rel=unchanged}}
+
{{PacketList|0x7B|Clientbound Server Links (play)|rel=added}}
{{PacketList|{{change|0x59|0x5A}}|Set Title Text|rel=unchanged}}
+
|-
{{PacketList|{{change|0x5A|0x5B}}|Set Title Times|rel=unchanged}}
+
|}
{{PacketList|{{change|0x5B|0x5C}}|Entity Sound Effect|rel=unchanged}}
 
{{PacketList|{{change|0x5C|0x5D}}|Sound Effect|rel=unchanged}}
 
{{PacketList|{{change|0x5D|0x5E}}|Stop Sound|rel=unchanged}}
 
{{PacketList|{{change|0x5E|0x5F}}|Player List Header And Footer|rel=unchanged}}
 
{{PacketList|{{change|0x5F|0x60}}|NBT Query Response|rel=unchanged}}
 
{{PacketList|{{change|0x60|0x61}}|Collect Item|rel=unchanged}}
 
{{PacketList|{{change|0x61|0x62}}|Entity Teleport|rel=unchanged}}
 
{{PacketList|{{change|0x62|0x63}}|Advancements|rel=unchanged}}
 
{{PacketList|{{change|0x63|0x64}}|Entity Properties|rel=unchanged}}
 
{{PacketList|{{change|0x64|0x65}}|Entity Effect|rel=unchanged}}
 
{{PacketList|{{change|0x65|0x66}}|Declare Recipes|rel=unchanged}}
 
{{PacketList|{{change|0x66|0x67}}|Tags|rel=unchanged}}
 
|}
 
  
== New/modified data types ==
+
== Handshake ==
  
 
No changes so far.
 
No changes so far.
  
== Entity Metadata ==
+
== Status ==
  
 
No changes so far.
 
No changes so far.
  
=== Entity ===
+
== Login ==
 
 
No changes so far.
 
 
 
== Block Actions ==
 
 
 
No changes so far.
 
 
 
== Inventories ==
 
 
 
No changes so far.
 
 
 
== Plugin Channels ==
 
  
 
No changes so far.
 
No changes so far.
  
== Play ==
+
== Configuration ==
  
 
=== Clientbound ===
 
=== Clientbound ===
  
==== Block Entity Data ====
+
==== Clientbound Report Details (configuration) ====
  
Sets the block entity associated with the block at the given location.
+
Contains a list of key-value text entries that are included in any crash or disconnection report generated during connection to the server.
  
{| class="wikitable"
+
{| class="wikitable" {{added}}
 
  ! Packet ID
 
  ! Packet ID
 
  ! State
 
  ! State
 
  ! Bound To
 
  ! Bound To
  ! Field Name
+
  ! colspan="2"| Field Name
  ! Field Type
+
  ! colspan="2"| Field Type
 
  ! Notes
 
  ! Notes
 
  |-
 
  |-
  |rowspan="4"| 0x0A
+
  | rowspan="3"| 0x0F
  |rowspan="4"| Play
+
  | rowspan="3"| Configuration
  |rowspan="4"| Client
+
  | rowspan="3"| Client
  | Location
+
  | colspan="2"| Details Count
| Position
+
  | colspan="2"| {{Type|VarInt}} (32)
  |  
+
  | The number of details in the following array.
|- {{removed}}
+
  |-
  | Action
+
| rowspan="2"| Details
  | Unsigned Byte
+
  | Title
  | The type of update to perform, see below.
+
  | rowspan="2"| {{Type|Array}}
  |- {{added}}
+
  | {{Type|String}} (128)
  | Type
+
  |
| VarInt
 
  | The type of block entity
 
 
  |-
 
  |-
  | NBT Data
+
  | Description
  | [[NBT|NBT Tag]]
+
  | {{Type|String}} (4096)
  | 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 ====
+
==== Clientbound Server Links (configuration) ====
{{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)}}
+
This packet contains a list of links that the Notchian client will display in the menu available from the pause menu. Link labels can be built-in or custom (i.e., any text).
  
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).
+
{| class="wikitable" {{added}}
 
 
{| class="wikitable"
 
 
  ! Packet ID
 
  ! Packet ID
 
  ! 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"| 0x10
  |rowspan="32"| Play
+
  | rowspan="4"| Configuration
  |rowspan="32"| Client
+
  | rowspan="4"| Client
  |colspan="2"| Chunk X
+
  | colspan="2"| Links Count
|colspan="2"| Int
+
  | colspan="2"| {{Type|VarInt}}
| Chunk coordinate (block coordinate divided by 16, rounded down)
+
  | The number of links in the following array.
|-
 
  |colspan="2"| Chunk Z
 
|colspan="2"| Int
 
| Chunk coordinate (block coordinate divided by 16, rounded down)
 
|- {{removed}}
 
|colspan="2"| Bit Mask Length
 
|colspan="2"| VarInt
 
| Length of the following array
 
|- {{removed}}
 
  |colspan="2"| Primary Bit Mask
 
|colspan="2"| Array of Long
 
| 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).
 
 
  |-
 
  |-
  |colspan="2"| Heightmaps
+
  | rowspan="3"| Links
  |colspan="2"| [[NBT]]
+
  | Is built-in
| 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.
+
  | rowspan="3"| {{Type|Array}}
  |- {{removed}}
+
  | {{Type|Boolean}}
|colspan="2"| Biomes length
+
  | Determines if the following label is built-in (from enum) or custom (text component).
|colspan="2"| VarInt
 
| Size of the following array; should always be 1024.  {{change|Not present if full chunk is false.|}}
 
  |- {{removed}}
 
  |colspan="2"| Biomes
 
|colspan="2"| Array of VarInt
 
| 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]].
 
|-  
 
|colspan="2"| Size
 
|colspan="2"| VarInt
 
| Size of Data in bytes
 
 
  |-
 
  |-
  |colspan="2"| Data
+
  | Label
  |colspan="2"| Byte array
+
  | {{Type|VarInt}} {{Type|Enum}} / {{Type|Text Component}}
  | See [[Chunk Format#Data structure|data structure]] in Chunk Format
+
  | See below.
 
  |-
 
  |-
  |colspan="2"| Number of block entities
+
  | URL
|colspan="2"| VarInt
+
  | {{Type|String}}
| Number of elements in the following array
+
  | Valid URL.
|- {{removed}}
+
|}
|colspan="2"| Block entities
 
|colspan="2"| Array of [[NBT|NBT Tag]]
 
| All block entities in the chunk.  Use the x, y, and z tags in the NBT to determine their positions.
 
  |- {{added}}
 
|rowspan="4" | Block Entity
 
| Packed XZ
 
|rowspan="4" | Array
 
| Byte
 
| The packed section coordinates, calculated from ((blockX & 15) << 4) | (blockZ & 15)
 
|- {{added}}
 
| Y
 
| Short
 
| The height relative to the world
 
|- {{added}}
 
| Type
 
| VarInt
 
| The type of block entity
 
|- {{added}}
 
  | Data
 
| [[NBT]]
 
| The block entity's data, without the X, Y, and Z values
 
|- {{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.
 
  
The compacted array format has been adjusted so that individual entries no longer span across multiple longs, affecting the main data array and heightmaps.
+
{| class="wikitable" {{added}}
 
+
  ! ID
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>
+
  ! Name
 
 
<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>
 
<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>
 
 
 
==== Join Game ====
 
 
 
See [[Protocol Encryption]] for information on logging in.
 
 
 
{| class="wikitable"
 
  ! Packet ID
 
  ! State
 
! Bound To
 
! Field Name
 
! Field Type
 
 
  ! Notes
 
  ! Notes
 
  |-
 
  |-
  |rowspan="17"| 0x26
+
  | 0
|rowspan="17"| Play
+
  | Bug Report
|rowspan="17"| Client
+
  | Displayed on connection error screen; included as a comment in the disconnection report.
| Entity ID
 
  | Int
 
  | The player's Entity ID (EID).
 
 
  |-
 
  |-
  | Is hardcore
+
  | 1
  | Boolean
+
  | Community Guidelines
  |
+
  |  
 
  |-
 
  |-
  | Gamemode
+
  | 2
  | Unsigned Byte
+
  | Support
  | 0: Survival, 1: Creative, 2: Adventure, 3: Spectator.
+
  |  
 
  |-
 
  |-
  | Previous Gamemode
+
  | 3
  | Byte
+
  | Status
  | 0: survival, 1: creative, 2: adventure, 3: spectator. The hardcore flag is not included. The previous gamemode. Defaults to -1 if there is no previous gamemode. (More information needed)
+
  |  
 
  |-
 
  |-
  | World Count
+
  | 4
  | VarInt
+
  | Feedback
  | Size of the following array.
+
  |  
 
  |-
 
  |-
  | World Names
+
  | 5
  | Array of Identifier
+
  | Community
  | Identifiers for all worlds on the server.
+
  |  
 
  |-
 
  |-
  | Dimension Codec
+
  | 6
  | [[NBT|NBT Tag Compound]]
+
  | Website
  | The full extent of these is still unknown, but the tag represents a dimension and biome registry. See below for the vanilla default.
+
  |  
 
  |-
 
  |-
  | Dimension
+
  | 7
  | [[NBT|NBT Tag Compound]]
+
  | Forums
| Valid dimensions are defined per dimension registry sent before this. The structure of this tag is a dimension type (see below).
+
  |  
|-
 
| World Name
 
| Identifier
 
  | Name of the world being spawned into.
 
 
  |-
 
  |-
  | Hashed seed
+
  | 8
  | Long
+
  | News
  | First 8 bytes of the SHA-256 hash of the world's seed. Used client side for biome noise
+
  |  
 
  |-
 
  |-
  | Max Players
+
  | 9
  | VarInt
+
  | Announcements
  | Was once used by the client to draw the player list, but now is ignored.
+
  |  
 
  |-
 
  |-
| View Distance
 
| VarInt
 
| Render distance (2-32).
 
|- {{added}}
 
| Simulation Distance
 
| VarInt
 
| The distance that the cleint will process specific things, such as entities.
 
|-
 
| Reduced Debug Info
 
| Boolean
 
| If true, a Notchian client shows reduced information on the {{Minecraft Wiki|debug screen}}.  For servers in development, this should almost always be false.
 
|-
 
| Enable respawn screen
 
| Boolean
 
| Set to false when the doImmediateRespawn gamerule is true.
 
|-
 
| Is Debug
 
| Boolean
 
| True if the world is a {{Minecraft Wiki|debug mode}} world; debug mode worlds cannot be modified and have predefined blocks.
 
|-
 
| Is Flat
 
| Boolean
 
| True if the world is a {{Minecraft Wiki|superflat}} world; flat worlds have different void fog and a horizon at y=0 instead of y=63.
 
 
  |}
 
  |}
  
 +
=== Serverbound ===
  
The '''Dimension Codec''' NBT Tag Compound ([https://gist.githubusercontent.com/BomBardyGamer/c075a7a34b51f2df9d5aabdd2a762f4f/raw/c7352784dfadbca00d2282aeca04ed80081bfb09/dimension_codec.snbt Default value in SNBT]) includes two registries: "minecraft:dimension_type" and "minecraft:worldgen/biome".
+
No changes so far.
  
{| class="wikitable"
+
== Play ==
!Name
 
!Type
 
!style="width: 250px;" colspan="2"| Notes
 
|-
 
| minecraft:dimension_type
 
| TAG_Compound
 
| The dimension type registry (see below).
 
|-
 
| minecraft:worldgen/biome
 
| TAG_Compound
 
| The biome registry (see below).
 
|}
 
  
Dimension type registry:
+
=== Clientbound ===
  
{| class="wikitable"
+
==== Clientbound Report Details (play) ====
!Name
 
!Type
 
!style="width: 250px;" colspan="2"| Notes
 
|-
 
| type
 
| TAG_String
 
| The name of the registry. Always "minecraft:dimension_type".
 
|-
 
| value
 
| TAG_List
 
| List of dimension types registry entries (see below).
 
|}
 
  
Dimension type registry entry:
+
Contains a list of key-value text entries that are included in any crash or disconnection report generated during connection to the server.
  
{| class="wikitable"
+
{| class="wikitable" {{added}}
  !Name
+
  ! Packet ID
!Type
+
  ! State
!style="width: 250px;" colspan="2"| Notes
+
  ! Bound To
|-
+
  ! colspan="2"| Field Name
| name
+
  ! colspan="2"| Field Type
| TAG_String
+
  ! Notes
| The name of the dimension type (for example, "minecraft:overworld").
 
|-
 
| id
 
| TAG_Int
 
| The protocol ID of the dimension (matches the index of the element in the registry list).
 
|-
 
| element
 
| TAG_Compound
 
| The dimension type (see below).
 
|}
 
 
 
Dimension type:
 
 
 
{| class="wikitable"
 
  ! Name
 
  ! Type
 
  !style="width: 250px;" colspan="2"| Meaning
 
  ! Values
 
|-
 
| piglin_safe
 
| TAG_Byte
 
|colspan="2"| Whether piglins shake and transform to zombified piglins.
 
  | 1: true, 0: false.
 
|-
 
| natural
 
| TAG_Byte
 
|colspan="2"| When false, compasses spin randomly. When true, nether portals can spawn zombified piglins.
 
| 1: true, 0: false.
 
|-
 
| ambient_light
 
| TAG_Float
 
|colspan="2"| How much light the dimension has.
 
| 0.0 to 1.0.
 
|-
 
| fixed_time
 
| Optional TAG_Long
 
|colspan="2"| If set, the time of the day is the specified value.
 
| If set, 0 to 24000.
 
|-
 
| infiniburn
 
| TAG_String
 
|colspan="2"| A resource location defining what block tag to use for infiniburn.
 
| "" or minecraft resource "minecraft:...".
 
|-
 
| respawn_anchor_works
 
| TAG_Byte
 
|colspan="2"| Whether players can charge and use respawn anchors.
 
| 1: true, 0: false.
 
 
  |-
 
  |-
  | has_skylight
+
  | rowspan="3"| 0x7A
  | TAG_Byte
+
  | rowspan="3"| Configuration
  |colspan="2"| Whether the dimension has skylight access or not.
+
| rowspan="3"| Client
  | 1: true, 0: false.
+
  | colspan="2"| Details Count
 +
| colspan="2"| {{Type|VarInt}} (32)
 +
  | The number of details in the following array.
 
  |-
 
  |-
  | bed_works
+
  | rowspan="2"| Details
| TAG_Byte
+
  | Title
|colspan="2"| Whether players can use a bed to sleep.
+
  | rowspan="2"| {{Type|Array}}
| 1: true, 0: false.
+
  | {{Type|String}} (128)
|-
 
| effects
 
| TAG_String
 
|colspan="2"| ?
 
| "minecraft:overworld", "minecraft:the_nether", "minecraft:the_end" or something else.
 
|-
 
  | has_raids
 
  | TAG_Byte
 
|colspan="2"| Whether players with the Bad Omen effect can cause a raid.
 
| 1: true, 0: false.
 
|-
 
| min_y
 
| TAG_Int
 
  |colspan="2"| The minimum Y level.
 
 
  |
 
  |
 
  |-
 
  |-
  | height
+
  | Description
  | TAG_Int
+
  | {{Type|String}} (4096)
|colspan="2"| The maximum height.
 
 
  |
 
  |
|-
+
|}
| logical_height
+
 
| TAG_Int
+
==== Clientbound Server Links (play) ====
|colspan="2"| The maximum height to which chorus fruits and nether portals can bring players within this dimension.
 
| 0-256.
 
|-
 
| coordinate_scale
 
| TAG_Float
 
|colspan="2"| The multiplier applied to coordinates when traveling to the dimension.
 
| 0.00001 - 30000000.0
 
|-
 
| ultrawarm
 
| TAG_Byte
 
|colspan="2"| Whether the dimensions behaves like the nether (water evaporates and sponges dry) or not. Also causes lava to spread thinner.
 
| 1: true, 0: false.
 
|-
 
| has_ceiling
 
| TAG_Byte
 
|colspan="2"| Whether the dimension has a bedrock ceiling or not. When true, causes lava to spread faster.
 
| 1: true, 0: false.
 
|}
 
  
Biome registry:
+
This packet contains a list of links that the Notchian client will display in the menu available from the pause menu. Link labels can be built-in or custom (i.e., any text).
  
{| class="wikitable"
+
{| class="wikitable" {{added}}
  !Name
+
  ! Packet ID
  !Type
+
! State
  !style="width: 250px;" colspan="2"| Notes
+
  ! Bound To
 +
  ! colspan="2"| Field Name
 +
! colspan="2"| Field Type
 +
! Notes
 
  |-
 
  |-
  | type
+
  | rowspan="4"| 0x7B
  | TAG_String
+
| rowspan="4"| Configuration
  | The name of the registry. Always "minecraft:worldgen/biome".
+
  | rowspan="4"| Client
 +
| colspan="2"| Links Count
 +
| colspan="2"| {{Type|VarInt}}
 +
  | The number of links in the following array.
 
  |-
 
  |-
  | value
+
  | rowspan="3"| Links
| TAG_List
+
  | Is built-in
  | List of biome registry entries (see below).
+
  | rowspan="3"| {{Type|Array}}
  |}
+
  | {{Type|Boolean}}
 
+
  | Determines if the following label is built-in (from enum) or custom (text component).
Biome registry entry:
 
 
 
{| class="wikitable"
 
!Name
 
!Type
 
!style="width: 250px;" colspan="2"| Notes
 
  |-
 
| name
 
| TAG_String
 
  | The name of the biome (for example, "minecraft:ocean").
 
 
  |-
 
  |-
  | id
+
  | Label
  | TAG_Int
+
  | {{Type|VarInt}} {{Type|Enum}} / {{Type|Text Component}}
  | The protocol ID of the biome (matches the index of the element in the registry list).
+
  | See below.
 
  |-
 
  |-
  | element
+
  | URL
  | TAG_Compound
+
  | {{Type|String}}
  | The biome properties (see below).
+
  | Valid URL.
|}
+
|}
  
Biome properties:
+
{| class="wikitable" {{added}}
 
+
  ! ID
{| class="wikitable"
+
  ! Name
  !colspan="2"|Name
+
  ! Notes
  !colspan="2"|Type
 
!style="width: 250px;" colspan="2"| Meaning
 
  !colspan="2"|Values
 
 
  |-
 
  |-
  |colspan="2"|precipitation
+
  | 0
  |colspan="2"|TAG_String
+
  | Bug Report
  |colspan="2"| The type of precipitation in the biome.
+
  | Displayed on connection error screen; included as a comment in the disconnection report.
|colspan="2"|"rain", "snow", or "none".
 
 
  |-
 
  |-
  |colspan="2"| depth
+
  | 1
|colspan="2"| TAG_Float
+
  | Community Guidelines
  |colspan="2"| The depth factor of the biome.
+
  |  
  |colspan="2"| The default values vary between 1.5 and -1.8.
 
 
  |-
 
  |-
  |colspan="2"| temperature
+
  | 2
  |colspan="2"| TAG_Float
+
  | Support
  |colspan="2"| The temperature factor of the biome.
+
  |  
|colspan="2"| The default values vary between 2.0 and -0.5.
 
 
  |-
 
  |-
  |colspan="2"| scale
+
  | 3
  |colspan="2"| TAG_Float
+
  | Status
  |colspan="2"| ?
+
  |  
|colspan="2"| The default values vary between 1.225 and 0.0.
 
 
  |-
 
  |-
  |colspan="2"| downfall
+
  | 4
  |colspan="2"| TAG_Float
+
  | Feedback
  |colspan="2"| ?
+
  |  
|colspan="2"| The default values vary between 1.0 and 0.0.
 
 
  |-
 
  |-
  |colspan="2"| category
+
  | 5
  |colspan="2"| TAG_String
+
  | Community
  |colspan="2"| The category of the biome.
+
  |  
|colspan="2"| Known values are "ocean", "plains", "desert", "forest", "extreme_hills", "taiga", "swamp", "river", "nether", "the_end", "icy", "mushroom", "beach", "jungle", "mesa", "savanna", and "none".
 
 
  |-
 
  |-
  |colspan="2"| temperature_modifier
+
  | 6
  |colspan="2"| Optional TAG_String
+
  | Website
  |colspan="2"| ?
+
  |  
|colspan="2"| The only known value is "frozen".
 
 
  |-
 
  |-
  |rowspan="11"| effects
+
  | 7
| sky_color
+
  | Forums
|rowspan="11"| TAG_Compound
+
  |  
| TAG_Int
 
  |colspan="2"| The color of the sky.
 
  | Example: 8364543, which is #7FA1FF in RGB.
 
 
  |-
 
  |-
  | water_fog_color
+
  | 8
  | TAG_Int
+
  | News
  |colspan="2"| Possibly the tint color when swimming.
+
  |  
| Example: 8364543, which is #7FA1FF in RGB.
 
 
  |-
 
  |-
  | fog_color
+
  | 9
  | TAG_Int
+
  | Announcements
  |colspan="2"| Possibly the color of the fog effect when looking past the view distance.
+
  |  
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| water_color
 
| TAG_Int
 
|colspan="2"| The tint color of the water blocks.
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| foliage_color
 
| Optional TAG_Int
 
|colspan="2"| The tint color of the grass.
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| grass_color
 
| Optional TAG_Int
 
| colspan="2"| ?
 
| Example: 8364543, which is #7FA1FF in RGB.
 
|-
 
| grass_color_modifier
 
| Optional TAG_String
 
|colspan="2"| Unknown, likely affects foliage color.
 
| If set, known values are "swamp" and "dark_forest".
 
|-
 
| music
 
| Optional TAG_Compound
 
|colspan="2"| Music properties for the biome.
 
| If present, contains the fields: replace_current_music (TAG_Byte), sound (TAG_String), max_delay (TAG_Int), min_delay (TAG_Int).
 
|-
 
| ambient_sound
 
| Optional TAG_String
 
|colspan="2"| Ambient soundtrack.
 
| If present, the ID of a soundtrack. Example: "minecraft:ambient.basalt_deltas.loop".
 
 
  |-
 
  |-
| additions_sound
 
| Optional TAG_Compound
 
|colspan="2"| Additional ambient sound that plays randomly.
 
| If present, contains the fields: sound (TAG_String), tick_chance (TAG_Double).
 
|-
 
| mood_sound
 
| Optional TAG_Compound
 
|colspan="2"| Additional ambient sound that plays at an interval.
 
| If present, contains the fields: sound (TAG_String), tick_delay (TAG_Int), offset (TAG_Double), block_search_extent (TAG_Int).
 
|-
 
|rowspan="2"|particle
 
| probability
 
|rowspan="2"|Optional TAG_Compound
 
| TAG_FLOAT
 
|rowspan="2"| Particles that appear randomly in the biome.
 
| Possibly the probability of spawning the particle.
 
| ?
 
|-
 
| options
 
| TAG_COMPOUND
 
| The properties of the particle to spawn.
 
| Contains the field "type" (TAG_String), which identifies the particle type.
 
 
  |}
 
  |}
 
==== Update Simulation Distance ====
 
 
{| class="wikitable" {{Added}}
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
| 0x26
 
| Play
 
| Client
 
| Simulation Distance
 
| VarInt
 
| The distance that the cleint will process specific things, such as entities.
 
|}
 
 
=== Serverbound ===
 
 
No changes so far.
 
 
== Status ==
 
 
=== Clientbound ===
 
 
No changes so far.
 
  
 
=== Serverbound ===
 
=== Serverbound ===
  
 
No changes so far.
 
No changes so far.
 
== Login ==
 
 
=== Clientbound ===
 
 
No changes so far.
 
 
=== Serverbound ===
 
 
No changes so far.
 
 
  
 
[[Category:Minecraft Modern]]
 
[[Category:Minecraft Modern]]

Latest revision as of 10:40, 8 June 2024

This page documents the changes from the last stable Minecraft release (currently 1.20.6, protocol 766) to the current pre-release (currently 1.21-pre2, protocol Snapshot 200). 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 documented so far.

Packets

ID Packet name Documentation
Configuration clientbound
0x0F Clientbound Report Details (configuration) Pre
0x10 Clientbound Server Links (configuration) Pre
Play clientbound
0x7A Clientbound Report Details (play) Pre
0x7B Clientbound Server Links (play) Pre

Handshake

No changes so far.

Status

No changes so far.

Login

No changes so far.

Configuration

Clientbound

Clientbound Report Details (configuration)

Contains a list of key-value text entries that are included in any crash or disconnection report generated during connection to the server.

Packet ID State Bound To Field Name Field Type Notes
0x0F Configuration Client Details Count VarInt (32) The number of details in the following array.
Details Title Array String (128)
Description String (4096)

Clientbound Server Links (configuration)

This packet contains a list of links that the Notchian client will display in the menu available from the pause menu. Link labels can be built-in or custom (i.e., any text).

Packet ID State Bound To Field Name Field Type Notes
0x10 Configuration Client Links Count VarInt The number of links in the following array.
Links Is built-in Array Boolean Determines if the following label is built-in (from enum) or custom (text component).
Label VarInt Enum / Text Component See below.
URL String Valid URL.


ID Name Notes
0 Bug Report Displayed on connection error screen; included as a comment in the disconnection report.
1 Community Guidelines
2 Support
3 Status
4 Feedback
5 Community
6 Website
7 Forums
8 News
9 Announcements

Serverbound

No changes so far.

Play

Clientbound

Clientbound Report Details (play)

Contains a list of key-value text entries that are included in any crash or disconnection report generated during connection to the server.

Packet ID State Bound To Field Name Field Type Notes
0x7A Configuration Client Details Count VarInt (32) The number of details in the following array.
Details Title Array String (128)
Description String (4096)

Clientbound Server Links (play)

This packet contains a list of links that the Notchian client will display in the menu available from the pause menu. Link labels can be built-in or custom (i.e., any text).

Packet ID State Bound To Field Name Field Type Notes
0x7B Configuration Client Links Count VarInt The number of links in the following array.
Links Is built-in Array Boolean Determines if the following label is built-in (from enum) or custom (text component).
Label VarInt Enum / Text Component See below.
URL String Valid URL.
ID Name Notes
0 Bug Report Displayed on connection error screen; included as a comment in the disconnection report.
1 Community Guidelines
2 Support
3 Status
4 Feedback
5 Community
6 Website
7 Forums
8 News
9 Announcements

Serverbound

No changes so far.