Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
(First part of the update)
(Updated to 1.21-pre2)
 
(874 intermediate revisions by 54 users not shown)
Line 1: Line 1:
This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently [[Protocol version numbers|1.11, protocol 315]]) to the current pre-release (currently [[Protocol version numbers|1.11, protocol 315]]). 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 ===
 
No changes so far.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 20: Line 18:
 
  !colspan="2"| Documentation
 
  !colspan="2"| Documentation
 
  |-
 
  |-
  !colspan="4"| Handshaking serverbound
+
  !colspan="4"| Configuration clientbound
  {{PacketList|0x00|Handshake}}
+
  {{PacketList|0x0F|Clientbound Report Details (configuration)|rel=added}}
 +
{{PacketList|0x10|Clientbound Server Links (configuration)|rel=added}}
 
  |-
 
  |-
 
  !colspan="4"| Play clientbound
 
  !colspan="4"| Play clientbound
  {{PacketList|0x03|Spawn Mob}}
+
  {{PacketList|0x7A|Clientbound Report Details (play)|rel=added}}
{{PacketList|0x09|Update Block Entity}}
+
  {{PacketList|0x7B|Clientbound Server Links (play)|rel=added}}
{{PacketList|0x0E|Tab-Complete (clientbound)}}
 
{{PacketList|0x1B|Entity Status}}
 
{{PacketList|0x24|Map}}
 
{{PacketList|0x45|Title}}
 
  {{PacketList|0x48|Collect Item}}
 
|-
 
!colspan="4"| Play serverbound
 
{{PacketList|0x02|Chat Message (serverbound)}}
 
{{PacketList|0x1C|Player Block Placement}}
 
 
  |-
 
  |-
 
|}
 
|}
  
== New/modified data types ==
+
== Handshake ==
  
=== Objects ===
+
No changes so far.
  
''No changes so far'
+
== Status ==
  
=== Mobs ===
+
No changes so far.
  
''No changes so far''
+
== Login ==
  
=== Entity Metadata ===
+
No changes so far.
 
 
''No changes so far''
 
 
 
== Block Actions ==
 
  
=== Shulker Box ===
+
== Configuration ==
 
 
Animates the shulker box's shell opening.
 
 
 
==== Action IDs ====
 
 
 
There is only one action: 1, which updates the number of players who are looking in the shulker box.
 
 
 
==== Action param ====
 
 
 
If the action is 1, updates the number of players who have the shulker box open.  If 0, the shulker box enters its closing animation; if 1, the shulker box enters its opening animation.
 
 
 
[[Category:Minecraft Modern]]
 
 
 
== Handshaking ==
 
  
 
=== Clientbound ===
 
=== Clientbound ===
  
No changes so far.
+
==== Clientbound Report Details (configuration) ====
 
 
=== Serverbound ===
 
 
 
==== Handshake ====
 
  
This causes the server to switch into the target state.
+
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"| 0x00
+
  | rowspan="3"| 0x0F
  |rowspan="4"| Handshaking
+
  | rowspan="3"| Configuration
  |rowspan="4"| Server
+
  | rowspan="3"| Client
  | Protocol Version
+
  | colspan="2"| Details Count
  | VarInt
+
  | colspan="2"| {{Type|VarInt}} (32)
| See [[protocol version numbers]] (currently {{change|210|314}})
+
| The number of details in the following array.
 
  |-
 
  |-
  | Server Address
+
  | rowspan="2"| Details
  | String
+
  | Title
  | Hostname or IP, e.g. localhost or 127.0.0.1, that was used to connect.  The Notchian server does not use this information.
+
  | rowspan="2"| {{Type|Array}}
|-
+
  | {{Type|String}} (128)
  | Server Port
+
  |
| Unsigned Short
 
  | Default is 25565.  The Notchian server does not use this information.
 
 
  |-
 
  |-
  | Next State
+
  | Description
  | VarInt Enum
+
  | {{Type|String}} (4096)
  | 1 for [[#Status|status]], 2 for [[#Login|login]]
+
  |
|}
+
|}
 
 
== Play ==
 
 
 
=== Clientbound ===
 
  
==== Spawn Mob ====
+
==== Clientbound Server Links (configuration) ====
  
Sent by the server when a mob entity is spawned.
+
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}}
 
  ! 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="13"| 0x03
+
  | rowspan="4"| 0x10
  |rowspan="13"| Play
+
  | rowspan="4"| Configuration
  |rowspan="13"| Client
+
  | rowspan="4"| Client
  | Entity ID
+
  | colspan="2"| Links Count
  | VarInt
+
  | colspan="2"| {{Type|VarInt}}
  |  
+
| The number of links in the following array.
 +
|-
 +
| rowspan="3"| Links
 +
| Is built-in
 +
| rowspan="3"| {{Type|Array}}
 +
| {{Type|Boolean}}
 +
| Determines if the following label is built-in (from enum) or custom (text component).
 +
|-
 +
| Label
 +
| {{Type|VarInt}} {{Type|Enum}} / {{Type|Text Component}}
 +
  | See below.
 
  |-
 
  |-
  | Entity UUID
+
  | URL
  | UUID
+
  | {{Type|String}}
  |  
+
  | Valid URL.
 +
|}
 +
 
 +
 
 +
{| class="wikitable" {{added}}
 +
! ID
 +
! Name
 +
! Notes
 
  |-
 
  |-
  | Type
+
  | 0
  | {{change|Unsigned Byte|VarInt}}
+
  | Bug Report
  | The type of mob. See [[Entities#Mobs]]
+
  | Displayed on connection error screen; included as a comment in the disconnection report.
 
  |-
 
  |-
  | X
+
  | 1
  | Double
+
  | Community Guidelines
 
  |  
 
  |  
 
  |-
 
  |-
  | Y
+
  | 2
  | Double
+
  | Support
 
  |  
 
  |  
 
  |-
 
  |-
  | Z
+
  | 3
  | Double
+
  | Status
 
  |  
 
  |  
 
  |-
 
  |-
  | Yaw
+
  | 4
  | Angle
+
  | Feedback
 
  |  
 
  |  
 
  |-
 
  |-
  | Pitch
+
  | 5
  | Angle
+
  | Community
 
  |  
 
  |  
 
  |-
 
  |-
  | Head Pitch
+
  | 6
  | Angle
+
  | Website
 
  |  
 
  |  
 
  |-
 
  |-
  | Velocity X
+
  | 7
  | Short
+
  | Forums
  | Same units as [[#Entity Velocity|Entity Velocity]]
+
  |  
 
  |-
 
  |-
  | Velocity Y
+
  | 8
  | Short
+
  | News
| Same units as [[#Entity Velocity|Entity Velocity]]
 
|-
 
| Velocity Z
 
| Short
 
| Same units as [[#Entity Velocity|Entity Velocity]]
 
|-
 
| Metadata
 
| [[Entities#Entity Metadata Format|Entity Metadata]]
 
 
  |  
 
  |  
|}
 
 
==== Update Block Entity ====
 
 
Sets tile entity associated with the block at the given location.
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
 
  |-
 
  |-
  |rowspan="3"| 0x09
+
  | 9
|rowspan="3"| Play
+
  | Announcements
|rowspan="3"| Client
 
| Location
 
  | Position
 
 
  |  
 
  |  
 
  |-
 
  |-
| Action
 
| Unsigned Byte
 
| The type of update to perform, see below
 
|-
 
| NBT Data
 
| [[NBT|NBT Tag]]
 
| 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)
 
 
  |}
 
  |}
  
''Action'' field:
+
=== Serverbound ===
  
* '''1''': Set SpawnPotentials of a mob spawner
+
No changes so far.
* '''2''': Set command block text (command and last execution status)
 
* '''3''': Set the level, primary, and secondary powers of a beacon
 
* '''4''': Set rotation and skin of mob head
 
* '''5''': Set type of flower in flower pot
 
* '''6''': Set base color and patterns on a banner
 
* '''7''': Set the data for a Structure tile entity
 
* '''8''': Set the destination for a end gateway
 
* '''9''': Set the text on a sign
 
* {{Change||'''10''': Declare a shulker box (unclear if there is any actual data)}}
 
  
==== Tab-Complete (clientbound) ====
+
== Play ==
  
The server responds with a list of auto-completions of the last word sent to it. In the case of regular chat, this is a player username. Command names and parameters are also supported. {{change|The client lists these in the order that they are in the array.|The client sorts these alphabetically before listing them.}}
+
=== Clientbound ===
  
{| class="wikitable"
+
==== Clientbound Report Details (play) ====
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="2"| 0x0E
 
|rowspan="2"| Play
 
|rowspan="2"| Client
 
| Count
 
| VarInt
 
| Number of elements in the following array
 
|-
 
| Matches
 
| Array of String
 
| One eligible command, note that each command is sent separately instead of in a single string, hence the need for Count
 
|}
 
  
==== Entity Status ====
+
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="2"| 0x1B
+
  | rowspan="3"| 0x7A
  |rowspan="2"| Play
+
  | rowspan="3"| Configuration
  |rowspan="2"| Client
+
  | rowspan="3"| Client
  | Entity ID
+
  | colspan="2"| Details Count
  | Int
+
  | colspan="2"| {{Type|VarInt}} (32)
  |  
+
  | The number of details in the following array.
 
  |-
 
  |-
  | Entity Status
+
  | rowspan="2"| Details
  | Byte Enum
+
  | Title
  | See below
+
  | rowspan="2"| {{Type|Array}}
  |}
+
  | {{Type|String}} (128)
 
+
|
{| class="wikitable"
 
 
  |-
 
  |-
! Entity Status
+
  | Description
! Meaning
+
  | {{Type|String}} (4096)
|-
+
  |
| 0
+
|}
| Spawn tipped arrow particle effects
 
|-
 
| 1
 
| Reset a mob spawner minecart's timer (unused by the client?)
 
|-
 
| 1
 
| Create rabbit running particles
 
|-
 
| 2
 
| Entity hurt animation
 
|-
 
| 3
 
| Entity died animation
 
|-
 
| 4
 
| Iron Golem throwing up arms
 
|-
 
| 6
 
| Wolf/Ocelot/Horse taming — Spawn “heart” particles
 
|-
 
| 7
 
| Wolf/Ocelot/Horse tamed — Spawn “smoke” particles
 
|-
 
| 8
 
| Wolf shaking water — Trigger the shaking animation
 
|-
 
| 9
 
| Mark item use as finished (ie, eating finished, drinking finished)
 
|-
 
| 10
 
| Sheep eating grass
 
|-
 
| 10
 
| Ignite TNT minecart
 
|-
 
| 11
 
| Iron Golem handing over a rose
 
|-
 
| 12
 
| Villager mating — Spawn “heart” particles
 
|-
 
| 13
 
| Spawn particles indicating that a villager is angry and seeking revenge
 
|-
 
| 14
 
| Spawn happy particles near a villager
 
|-
 
| 15
 
| Witch animation — Spawn “magic” particles
 
|-
 
| 16
 
| Play zombie converting into a villager sound
 
|-
 
| 17
 
| Firework exploding
 
|-
 
| 18
 
| Animal in love (ready to mate) — Spawn “heart” particles
 
|-
 
| 19
 
| Reset squid rotation
 
|-
 
| 20
 
| Spawn explosion particle — works for some living entities
 
|-
 
| 21
 
| Play guardian sound — works for every entity
 
|-
 
| 22
 
| Enables reduced {{Minecraft Wiki|Debug screen|debug}} for the given player
 
|-
 
| 23
 
| Disables reduced {{Minecraft Wiki|Debug screen|debug}} for the given player
 
  |-
 
  | 24–28
 
| Sets the {{Minecraft Wiki|Server.properties#op-permission-level|op permission level}} 0–4 for the connected player
 
|-
 
| 29
 
| Shield block sound
 
|-
 
| 30
 
| Shield break sound
 
|-
 
| 31
 
| For a fishing rod bobber, if the hooked entity is this player, tug that player toward the caster of the rod
 
|-
 
| 32
 
| Armorstand hit sound
 
|-
 
| 33
 
| Entity hurt due to thorns (play thorns sound, perform normal hurt animation)
 
  |-
 
|style="background-color: #d9ead3;"| 34
 
|style="background-color: #d9ead3;"| Puts away an iron golem's poppy
 
|-
 
|style="background-color: #d9ead3;"| 35
 
|style="background-color: #d9ead3;"| Plays the Totem of Undying animation
 
|}
 
  
==== Map ====
+
==== Clientbound Server Links (play) ====
  
Updates a rectangular area on a {{Minecraft Wiki|map}} item.
+
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}}
 
  ! 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="13"| 0x24
+
  | rowspan="4"| 0x7B
  |rowspan="13"| Play
+
  | rowspan="4"| Configuration
  |rowspan="13"| Client
+
  | rowspan="4"| Client
  |colspan="2"| Item Damage
+
  | colspan="2"| Links Count
  |colspan="2"| VarInt
+
  | colspan="2"| {{Type|VarInt}}
  | The damage value (map ID) of the map being modified
+
  | The number of links in the following array.
 
  |-
 
  |-
  |colspan="2"| Scale
+
  | rowspan="3"| Links
  |colspan="2"| Byte
+
  | Is built-in
| From 0 for a fully zoomed-in map (1 block per pixel) to 4 for a fully zoomed-out map (16 blocks per pixel)
+
  | rowspan="3"| {{Type|Array}}
|-
+
  | {{Type|Boolean}}
  |colspan="2"| Tracking Position
+
  | Determines if the following label is built-in (from enum) or custom (text component).
  |colspan="2"| Boolean
 
  | Specifies whether the icons are shown
 
|-  
 
|colspan="2"| Icon Count
 
|colspan="2"| VarInt
 
| Number of elements in the following array
 
 
  |-
 
  |-
  |rowspan="3"| Icon
+
  | Label
  | Direction And Type
+
  | {{Type|VarInt}} {{Type|Enum}} / {{Type|Text Component}}
|rowspan="3"| Array
+
  | See below.
| Byte
 
  | 0xF0 = Direction, 0x0F = Type
 
 
  |-
 
  |-
  | X
+
  | URL
  | Byte
+
  | {{Type|String}}
|
+
  | Valid URL.
|-
+
|}
| Z
 
| Byte
 
|
 
|-
 
|colspan="2"| Columns
 
|colspan="2"| Byte
 
| Number of columns updated
 
|-
 
|colspan="2"| Rows
 
|colspan="2"| Optional Byte
 
| Only if Columns is more than 0; number of rows updated
 
|-
 
|colspan="2"| X
 
|colspan="2"| Optional Byte
 
| Only if Columns is more than 0; x offset of the westernmost column
 
|-
 
|colspan="2"| Z
 
|colspan="2"| Optional Byte
 
| Only if Columns is more than 0; z offset of the northernmost row
 
|-
 
|colspan="2"| Length
 
|colspan="2"| Optional VarInt
 
| Only if Columns is more than 0; length of the following array
 
|-
 
|colspan="2"| Data
 
|colspan="2"| Optional Array of Unsigned Byte
 
| Only if Columns is more than 0; see {{Minecraft Wiki|Map item format}}
 
  |}
 
  
For icons, a direction of 0 is a vertical icon and increments by 22.5° (360/16).
+
{| class="wikitable" {{added}}
 
+
  ! ID
Types are based off of rows and columns in <code>map_icons.png</code>:
+
  ! Name
 
+
  ! Notes
{| class="wikitable"
 
  |-
 
  ! Icon type
 
  ! Result
 
 
  |-
 
  |-
 
  | 0
 
  | 0
  | White arrow (players)
+
  | Bug Report
 +
| Displayed on connection error screen; included as a comment in the disconnection report.
 
  |-
 
  |-
 
  | 1
 
  | 1
  | Green arrow (item frames)
+
  | Community Guidelines
 +
|
 
  |-
 
  |-
 
  | 2
 
  | 2
  | Red arrow
+
  | Support
 +
|
 
  |-
 
  |-
 
  | 3
 
  | 3
  | Blue arrow
+
  | Status
 +
|
 
  |-
 
  |-
 
  | 4
 
  | 4
  | White cross
+
  | Feedback
 +
|
 
  |-
 
  |-
 
  | 5
 
  | 5
  | Red pointer
+
  | Community
 +
|
 
  |-
 
  |-
 
  | 6
 
  | 6
  | White circle (off-map players)
+
  | Website
|-
 
|style="background-color: #d9ead3;"| 7
 
|style="background-color: #d9ead3;"| Small white circle (far-off-map players)
 
|-
 
|style="background-color: #d9ead3;"| 8
 
|style="background-color: #d9ead3;"| Mansion
 
|-
 
|style="background-color: #d9ead3;"| 9
 
|style="background-color: #d9ead3;"| Temple
 
|-
 
| 10-15
 
| Unused (blue square)
 
|}
 
 
 
==== Title ====
 
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
!colspan="2"| Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="10"| 0x45
 
|rowspan="10"| Play
 
|rowspan="10"| Client
 
|colspan="2"| Action
 
| VarInt Enum
 
 
  |  
 
  |  
 
  |-
 
  |-
! Action
+
  | 7
! Field Name
+
  | Forums
!
 
!
 
|-
 
| 0: set title
 
  | Title Text
 
  | [[Chat]]
 
 
  |  
 
  |  
 
  |-
 
  |-
  | 1: set subtitle
+
  | 8
  | Subtitle Text
+
  | News
| [[Chat]]
 
 
  |  
 
  |  
|-
 
|style="background-color: #d9ead3;"|2: set action bar
 
|style="background-color: #d9ead3;"|Action bar text
 
|style="background-color: #d9ead3;"|[[Chat]]
 
|style="background-color: #d9ead3;"|Behaves the same as with position 2 in [[#Chat Message (clientbound)|Chat Message (clientbound)]]
 
 
  |-
 
  |-
  |rowspan="3"| {{change|2|3}}: set times and display
+
  | 9
| Fade In
+
  | Announcements
| Int
 
| Ticks to spend fading in
 
|-
 
| Stay
 
| Int
 
| Ticks to keep the title displayed
 
|-
 
| Fade Out
 
| Int
 
| Ticks to spend out, not when to start fading out
 
|-
 
| {{change|3|4}}: hide
 
| ''no fields''
 
  | ''no fields''
 
 
  |  
 
  |  
 
  |-
 
  |-
| {{change|4|5}}: reset
 
| ''no fields''
 
| ''no fields''
 
|
 
|}
 
 
“Hide” makes the title disappear, but if you run times again the same title will appear. “Reset” erases the text.
 
 
The title is visible on screen for Fade In + Stay + Fade Out ticks.
 
 
==== Collect Item ====
 
 
Sent by the server when someone picks up an item lying on the ground — its sole purpose appears to be the animation of the item flying towards you. It doesn't destroy the entity in the client memory, and it doesn't add it to your inventory. The server only checks for items to be picked up after each [[#Player Position|Player Position]] (and [[#Player Position And Look|Player Position And Look]]) packet sent by the client.
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="3"| 0x48
 
|rowspan="3"| Play
 
|rowspan="3"| Client
 
| Collected Entity ID
 
| VarInt
 
|
 
|-
 
| Collector Entity ID
 
| VarInt
 
|
 
|-
 
|style="background-color: #d9ead3;"|Pickup Item Count
 
|style="background-color: #d9ead3;"|VarInt
 
|style="background-color: #d9ead3;"|Seems to be 1 for XP orbs, otherwise the number of items in the stack.
 
 
  |}
 
  |}
  
 
=== Serverbound ===
 
=== Serverbound ===
 
==== Chat Message (serverbound) ====
 
 
Used to send a chat message to the server.  The message may not be longer than {{change|100|256}} characters or else the server will kick the client.
 
 
If the message starts with a <code>/</code>, the server will attempt to interpret it as a command.  Otherwise, the server will broadcast the same chat message to all players on the server (including the player that sent the message), prepended with player's name.  Specifically, it will respond with a translate [[chat]] component, "<code>chat.type.text</code>" with the first parameter set to the display name of the player (including some chat component logic to support clicking the name to send a PM) and the second parameter set to the message.
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="1"| 0x02
 
|rowspan="1"| Play
 
|rowspan="1"| Server
 
| Message
 
| String
 
| The client sends the raw input, not a [[Chat]] component
 
|}
 
 
==== Player Block Placement ====
 
 
{| class="wikitable"
 
|-
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="6"| 0x1C
 
|rowspan="6"| Play
 
|rowspan="6"| Server
 
| Location
 
| Position
 
| Block position
 
|-
 
| Face
 
| VarInt Enum
 
| The face on which the block is placed (as documented at [[#Player Digging|Player Digging]])
 
|-
 
| Hand
 
| VarInt Enum
 
| The hand from which the block is placed; 0: main hand, 1: off hand
 
|-
 
| Cursor Position X
 
| {{change|Unsigned Byte|Float}}
 
| The position of the crosshair on the block, from 0 to 1 increasing from west to east
 
|-
 
| Cursor Position Y
 
| {{change|Unsigned Byte|Float}}
 
| The position of the crosshair on the block, from 0 to 1 increasing from bottom to top
 
|-
 
| Cursor Position Z
 
| {{change|Unsigned Byte|Float}}
 
| The position of the crosshair on the block, from 0 to 1 increasing from north to south
 
|}
 
 
== Status ==
 
 
=== Clientbound ===
 
  
 
No changes so far.
 
No changes so far.
  
=== Serverbound ===
+
[[Category:Minecraft Modern]]
 
 
No changes so far.
 
 
 
== Login ==
 
 
 
=== Clientbound ===
 
 
 
No changes so far.
 
 
 
=== Serverbound ===
 
 
 
No changes so far.
 

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.