Difference between revisions of "Pre-release protocol"
(0x4E) |
(Chunk format changed) |
||
Line 22: | Line 22: | ||
|- | |- | ||
!colspan="4"| Play clientbound | !colspan="4"| Play clientbound | ||
+ | {{PacketList|0x22|Chunk Data}} | ||
{{PacketList|0x4E|Entity Sound Effect|rel=added}} | {{PacketList|0x4E|Entity Sound Effect|rel=added}} | ||
{{PacketList|{{change|0x4E|0x4F}}|Player List Header And Footer|pre=unchanged}} | {{PacketList|{{change|0x4E|0x4F}}|Player List Header And Footer|pre=unchanged}} | ||
Line 49: | Line 50: | ||
=== Clientbound === | === Clientbound === | ||
+ | |||
+ | ==== Chunk Data ==== | ||
+ | {{Main|Chunk Format}} | ||
+ | {{See also|#Unload Chunk}} | ||
+ | |||
+ | {{Need Info|Unknown changes}} | ||
+ | |||
+ | The server only sends skylight information for chunk pillars in the {{Minecraft Wiki|Overworld}}, it's up to the client to know in which dimenison 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" | ||
+ | ! Packet ID | ||
+ | ! State | ||
+ | ! Bound To | ||
+ | ! Field Name | ||
+ | ! Field Type | ||
+ | ! Notes | ||
+ | |- | ||
+ | |rowspan="8"| 0x22 | ||
+ | |rowspan="8"| Play | ||
+ | |rowspan="8"| Client | ||
+ | | Chunk X | ||
+ | | Int | ||
+ | | Chunk coordinate (block coordinate divided by 16, rounded down) | ||
+ | |- | ||
+ | | Chunk Z | ||
+ | | Int | ||
+ | | Chunk coordinate (block coordinate divided by 16, rounded down) | ||
+ | |- | ||
+ | | Ground-Up Continuous | ||
+ | | Boolean | ||
+ | | See [[Chunk Format#Ground-up continuous|Chunk Format]] | ||
+ | |- | ||
+ | | Primary Bit Mask | ||
+ | | VarInt | ||
+ | | Bitmask with bits 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 y=0 to y=15). | ||
+ | |- | ||
+ | | Size | ||
+ | | VarInt | ||
+ | | Size of Data in bytes | ||
+ | |- | ||
+ | | Data | ||
+ | | Byte array | ||
+ | | See [[Chunk Format#Data structure|data structure]] in Chunk Format | ||
+ | |- | ||
+ | | Number of block entities | ||
+ | | VarInt | ||
+ | | Number of elements in the following array | ||
+ | |- | ||
+ | | Block entities | ||
+ | | 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. | ||
+ | |} | ||
==== Entity Sound Effect ==== | ==== Entity Sound Effect ==== |
Revision as of 18:49, 24 October 2018
This page documents the changes from the last stable Minecraft release (currently 1.13.2, protocol 404) to the current pre-release (currently 18w43b, protocol 441). 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 | |
---|---|---|---|
Handshaking serverbound | |||
0x00 | Handshake | Current | Pre |
Play clientbound | |||
0x22 | Chunk Data | Current | Pre |
0x4E | Entity Sound Effect | Pre | |
Player List Header And Footer | Current | (unchanged) | |
Collect Item | Current | (unchanged) | |
Entity Teleport | Current | (unchanged) | |
Advancements | Current | (unchanged) | |
Entity Properties | Current | (unchanged) | |
Entity Effect | Current | (unchanged) | |
Declare Recipes | Current | (unchanged) | |
Tags | Current | (unchanged) | |
0x57 | Unknown 2 | Pre |
New/modified data types
No changes so far.
Entity Metadata
No changes so far.
Block Actions
No changes so far.
Play
Clientbound
Chunk Data
- Main article: Chunk Format
- See also: #Unload Chunk
The following information needs to be added to this page: | |
Unknown changes |
The server only sends skylight information for chunk pillars in the Overworld, it's up to the client to know in which dimenison 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 later).
Packet ID | State | Bound To | Field Name | Field Type | Notes |
---|---|---|---|---|---|
0x22 | Play | Client | Chunk X | Int | Chunk coordinate (block coordinate divided by 16, rounded down) |
Chunk Z | Int | Chunk coordinate (block coordinate divided by 16, rounded down) | |||
Ground-Up Continuous | Boolean | See Chunk Format | |||
Primary Bit Mask | VarInt | Bitmask with bits 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 y=0 to y=15). | |||
Size | VarInt | Size of Data in bytes | |||
Data | Byte array | See data structure in Chunk Format | |||
Number of block entities | VarInt | Number of elements in the following array | |||
Block entities | Array of NBT Tag | All block entities in the chunk. Use the x, y, and z tags in the NBT to determine their positions. |
Entity Sound Effect
Plays a sound effect from an entity.
Packet ID | State | Bound To | Field Name | Field Type | Notes |
---|---|---|---|---|---|
0x4E | Play | Client | Sound ID | VarInt | ID of hardcoded sound event (events as of 1.13.2) |
Sound Category | VarInt Enum | The category that this sound will be played from (current categories) | |||
Entity ID | VarInt | ||||
Volume | Float | 1.0 is 100%, capped between 0.0 and 1.0 by Notchian clients | |||
Pitch | Float | Float between 0.5 and 2.0 by Notchian clients |
Unknown 2
The following information needs to be added to this page: | |
????? |
Serverbound
No changes so far.
Handshaking
Clientbound
There are no clientbound packets in the Handshaking state, since the protocol immediately switches to a different state after the client sends the first packet.
Serverbound
Handshake
This causes the server to switch into the target state.
Packet ID | State | Bound To | Field Name | Field Type | Notes |
---|---|---|---|---|---|
0x00 | Handshaking | Server | Protocol Version | VarInt | See protocol version numbers (currently |
Server Address | String | Hostname or IP, e.g. localhost or 127.0.0.1, that was used to connect. The Notchian server does not use this information. | |||
Server Port | Unsigned Short | Default is 25565. The Notchian server does not use this information. | |||
Next State | VarInt Enum | 1 for status, 2 for login |
Status
Clientbound
No changes so far.
Serverbound
No changes so far.
Login
Clientbound
No changes so far.
Serverbound
No changes so far.