Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
(→‎Play: Packet usage as far as I can understand it)
(Reset page)
 
(782 intermediate revisions by 50 users not shown)
Line 1: Line 1:
This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently [[Protocol version numbers|1.12, protocol 335]]) to the current pre-release (currently [[Protocol version numbers|17w31a, protocol 336]]). Note that this page contains bleeding-edge information that may not be completely or correctly documented.
+
There are currently no pre-release versions available to document on this page. For the latest stable Minecraft release, see the [[Protocol|Protocol]] page. For previous pre-release pages, see the [[Protocol version numbers|Protocol version numbers]] page.
  
 
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"
 
! ID
 
! Packet name
 
!colspan="2"| Documentation
 
|-
 
!colspan="4"| Handshaking serverbound
 
{{PacketList|0x00|Handshake}}
 
|-
 
!colspan="4"| Play clientbound
 
{{PacketList|0x2B|Unknown (clientbound)|rel=added}}
 
{{PacketList|{{Change|0x2B|0x2C}}|Player Abilities (clientbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x2C|0x2D}}|Combat Event|pre=unchanged}}
 
{{PacketList|{{Change|0x2D|0x2E}}|Player List Item|pre=unchanged}}
 
{{PacketList|{{Change|0x2E|0x2F}}|Player Position And Look (clientbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x2F|0x30}}|Use Bed|pre=unchanged}}
 
{{PacketList|{{Change|0x30|0x31}}|Unlock Recipes|pre=unchanged}}
 
{{PacketList|{{Change|0x31|0x32}}|Destroy Entities|pre=unchanged}}
 
{{PacketList|{{Change|0x32|0x33}}|Remove Entity Effect|pre=unchanged}}
 
{{PacketList|{{Change|0x33|0x34}}|Resource Pack Send|pre=unchanged}}
 
{{PacketList|{{Change|0x34|0x35}}|Respawn|pre=unchanged}}
 
{{PacketList|{{Change|0x35|0x36}}|Entity Head Look|pre=unchanged}}
 
{{PacketList|{{Change|0x36|0x37}}|Select Advancement Tab|pre=unchanged}}
 
{{PacketList|{{Change|0x37|0x38}}|World Border|pre=unchanged}}
 
{{PacketList|{{Change|0x38|0x39}}|Camera|pre=unchanged}}
 
{{PacketList|{{Change|0x39|0x3A}}|Held Item Change (clientbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x3A|0x3B}}|Display Scoreboard|pre=unchanged}}
 
{{PacketList|{{Change|0x3B|0x3C}}|Entity Metadata|pre=unchanged}}
 
{{PacketList|{{Change|0x3C|0x3D}}|Attach Entity|pre=unchanged}}
 
{{PacketList|{{Change|0x3D|0x3E}}|Entity Velocity|pre=unchanged}}
 
{{PacketList|{{Change|0x3E|0x3F}}|Entity Equipment|pre=unchanged}}
 
{{PacketList|{{Change|0x3F|0x40}}|Set Experience|pre=unchanged}}
 
{{PacketList|{{Change|0x40|0x41}}|Update Health|pre=unchanged}}
 
{{PacketList|{{Change|0x41|0x42}}|Scoreboard Objective|pre=unchanged}}
 
{{PacketList|{{Change|0x42|0x43}}|Set Passengers|pre=unchanged}}
 
{{PacketList|{{Change|0x43|0x44}}|Teams|pre=unchanged}}
 
{{PacketList|{{Change|0x44|0x45}}|Update Score|pre=unchanged}}
 
{{PacketList|{{Change|0x45|0x46}}|Spawn Position|pre=unchanged}}
 
{{PacketList|{{Change|0x46|0x47}}|Time Update|pre=unchanged}}
 
{{PacketList|{{Change|0x47|0x48}}|Title|pre=unchanged}}
 
{{PacketList|{{Change|0x48|0x49}}|Sound Effect|pre=unchanged}}
 
{{PacketList|{{Change|0x49|0x4A}}|Player List Header And Footer|pre=unchanged}}
 
{{PacketList|{{Change|0x4A|0x4B}}|Collect Item|pre=unchanged}}
 
{{PacketList|{{Change|0x4B|0x4C}}|Entity Teleport|pre=unchanged}}
 
{{PacketList|{{Change|0x4C|0x4D}}|Advancements|pre=unchanged}}
 
{{PacketList|{{Change|0x4D|0x4E}}|Entity Properties|pre=unchanged}}
 
{{PacketList|{{Change|0x4E|0x4F}}|Entity Effect|pre=unchanged}}
 
|-
 
!colspan="4"| Play serverbound
 
{{PacketList|0x01|Prepare Crafting Grid|pre=removed}}
 
{{PacketList|{{Change|0x02|0x01}}|Tab-Complete (serverbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x03|0x02}}|Chat Message (serverbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x04|0x03}}|Client Status|pre=unchanged}}
 
{{PacketList|{{Change|0x05|0x04}}|Client Settings|pre=unchanged}}
 
{{PacketList|{{Change|0x06|0x05}}|Confirm Transaction (serverbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x07|0x06}}|Enchant Item|pre=unchanged}}
 
{{PacketList|{{Change|0x08|0x07}}|Click Window|pre=unchanged}}
 
{{PacketList|{{Change|0x09|0x08}}|Close Window (serverbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x0A|0x09}}|Plugin Message (serverbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x0B|0x0A}}|Use Entity|pre=unchanged}}
 
{{PacketList|{{Change|0x0C|0x0B}}|Keep Alive (serverbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x0D|0x0C}}|Player|pre=unchanged}}
 
{{PacketList|{{Change|0x0E|0x0D}}|Player Position|pre=unchanged}}
 
{{PacketList|{{Change|0x0F|0x0E}}|Player Position And Look (serverbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x10|0x0F}}|Player Look|pre=unchanged}}
 
{{PacketList|{{Change|0x11|0x10}}|Vehicle Move (serverbound)|pre=unchanged}}
 
{{PacketList|{{Change|0x12|0x11}}|Steer Boat|pre=unchanged}}
 
{{PacketList|0x12|Unknown (serverbound)|rel=added}}
 
|}
 
 
== New/modified data types ==
 
  
 
No changes so far.
 
No changes so far.
 
== Block Actions ==
 
 
No changes so far.
 
  
 
[[Category:Minecraft Modern]]
 
[[Category:Minecraft Modern]]
 
== Play ==
 
 
=== Clientbound ===
 
 
==== Unknown (clientbound) ====
 
 
Response to the serverbound packet, with the same recipe ID.  Appears to be used to notify the UI.
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="2"| 0x2B
 
|rowspan="2"| Play
 
|rowspan="2"| Client
 
| Window ID
 
| Byte
 
|
 
|-
 
| Recipe
 
| VarInt
 
| A recipe ID
 
|}
 
 
=== Serverbound ===
 
 
==== Unknown (serverbound) ====
 
 
A replacement for [[Protocol#Prepare Crafting Grid|Prepare Crafting Grid]].  It appears to behave more or less the same, but the client does not specify where to move the items.
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="3"| 0x12
 
|rowspan="3"| Play
 
|rowspan="3"| Server
 
| Window ID
 
| Byte
 
|
 
|-
 
| Recipe
 
| VarInt
 
| A recipe ID
 
|-
 
| Make all
 
| Boolean
 
| Affects the amount of items processed; true if shift is down when clicked
 
|}
 
 
== Handshaking ==
 
 
=== Clientbound ===
 
 
No changes so far.
 
 
=== Serverbound ===
 
 
<!-- Version number will change meaning that this needs to be uncommented -->
 
 
==== Handshake ====
 
 
This causes the server to switch into the target state.
 
 
{| class="wikitable"
 
! Packet ID
 
! State
 
! Bound To
 
! Field Name
 
! Field Type
 
! Notes
 
|-
 
|rowspan="4"| 0x00
 
|rowspan="4"| Handshaking
 
|rowspan="4"| Server
 
| Protocol Version
 
| VarInt
 
| See [[protocol version numbers]] (currently {{change|335|336}})
 
|-
 
| 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|status]], 2 for [[#Login|login]]
 
|}
 
 
== Status ==
 
 
=== Clientbound ===
 
 
No changes so far.
 
 
=== Serverbound ===
 
 
No changes so far.
 
 
== Login ==
 
 
=== Clientbound ===
 
 
No changes so far.
 
 
=== Serverbound ===
 
 
No changes so far.
 

Latest revision as of 16:42, 29 June 2024

There are currently no pre-release versions available to document on this page. For the latest stable Minecraft release, see the Protocol page. For previous pre-release pages, see the Protocol version numbers page.

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

No changes so far.