Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
(New packets and changes for 17w31a)
(→‎Play: Name fields (thanks, kashike, for the SRG diff))
Line 98: Line 98:
 
==== Unknown (clientbound) ====
 
==== Unknown (clientbound) ====
  
Likely related to recipe book.
+
Related to the recipe book.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 111: Line 111:
 
  |rowspan="2"| Play
 
  |rowspan="2"| Play
 
  |rowspan="2"| Client
 
  |rowspan="2"| Client
  | Unknown
+
  | Window ID
 
  | Byte
 
  | Byte
 
  |
 
  |
 
  |-
 
  |-
  | Unknown
+
  | Recipe
 
  | VarInt
 
  | VarInt
  | Possibly a recipe ID?
+
  | A recipe ID
 
  |}
 
  |}
  
Line 137: Line 137:
 
  |rowspan="3"| Play
 
  |rowspan="3"| Play
 
  |rowspan="3"| Server
 
  |rowspan="3"| Server
  | Unknown
+
  | Window ID
 
  | Byte
 
  | Byte
 
  |
 
  |
 
  |-
 
  |-
  | Unknown
+
  | Recipe
 
  | VarInt
 
  | VarInt
  | Possibly a recipe ID?
+
  | A recipe ID
 
  |-
 
  |-
  | Unknown
+
  | Make all
 
  | Boolean
 
  | Boolean
  |
+
  | Affects the amount of items processed; true if shift is down when clicked
 
  |}
 
  |}
  

Revision as of 05:06, 2 August 2017

This page documents the changes from the last stable Minecraft release (currently 1.12, protocol 335) to the current pre-release (currently 17w31a, protocol 336). 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
0x2B Unknown (clientbound) Pre
0x2B 0x2C Player Abilities (clientbound) Current (unchanged)
0x2C 0x2D Combat Event Current (unchanged)
0x2D 0x2E Player List Item Current (unchanged)
0x2E 0x2F Player Position And Look (clientbound) Current (unchanged)
0x2F 0x30 Use Bed Current (unchanged)
0x30 0x31 Unlock Recipes Current (unchanged)
0x31 0x32 Destroy Entities Current (unchanged)
0x32 0x33 Remove Entity Effect Current (unchanged)
0x33 0x34 Resource Pack Send Current (unchanged)
0x34 0x35 Respawn Current (unchanged)
0x35 0x36 Entity Head Look Current (unchanged)
0x36 0x37 Select Advancement Tab Current (unchanged)
0x37 0x38 World Border Current (unchanged)
0x38 0x39 Camera Current (unchanged)
0x39 0x3A Held Item Change (clientbound) Current (unchanged)
0x3A 0x3B Display Scoreboard Current (unchanged)
0x3B 0x3C Entity Metadata Current (unchanged)
0x3C 0x3D Attach Entity Current (unchanged)
0x3D 0x3E Entity Velocity Current (unchanged)
0x3E 0x3F Entity Equipment Current (unchanged)
0x3F 0x40 Set Experience Current (unchanged)
0x40 0x41 Update Health Current (unchanged)
0x41 0x42 Scoreboard Objective Current (unchanged)
0x42 0x43 Set Passengers Current (unchanged)
0x43 0x44 Teams Current (unchanged)
0x44 0x45 Update Score Current (unchanged)
0x45 0x46 Spawn Position Current (unchanged)
0x46 0x47 Time Update Current (unchanged)
0x47 0x48 Title Current (unchanged)
0x48 0x49 Sound Effect Current (unchanged)
0x49 0x4A Player List Header And Footer Current (unchanged)
0x4A 0x4B Collect Item Current (unchanged)
0x4B 0x4C Entity Teleport Current (unchanged)
0x4C 0x4D Advancements Current (unchanged)
0x4D 0x4E Entity Properties Current (unchanged)
0x4E 0x4F Entity Effect Current (unchanged)
Play serverbound
0x01 Prepare Crafting Grid Current
0x02 0x01 Tab-Complete (serverbound) Current (unchanged)
0x03 0x02 Chat Message (serverbound) Current (unchanged)
0x04 0x03 Client Status Current (unchanged)
0x05 0x04 Client Settings Current (unchanged)
0x06 0x05 Confirm Transaction (serverbound) Current (unchanged)
0x07 0x06 Enchant Item Current (unchanged)
0x08 0x07 Click Window Current (unchanged)
0x09 0x08 Close Window (serverbound) Current (unchanged)
0x0A 0x09 Plugin Message (serverbound) Current (unchanged)
0x0B 0x0A Use Entity Current (unchanged)
0x0C 0x0B Keep Alive (serverbound) Current (unchanged)
0x0D 0x0C Player Current (unchanged)
0x0E 0x0D Player Position Current (unchanged)
0x0F 0x0E Player Position And Look (serverbound) Current (unchanged)
0x10 0x0F Player Look Current (unchanged)
0x11 0x10 Vehicle Move (serverbound) Current (unchanged)
0x12 0x11 Steer Boat Current (unchanged)
0x12 Unknown (serverbound) Pre

New/modified data types

No changes so far.

Block Actions

No changes so far.

Play

Clientbound

Unknown (clientbound)

Related to the recipe book.

Packet ID State Bound To Field Name Field Type Notes
0x2B Play Client Window ID Byte
Recipe VarInt A recipe ID

Serverbound

Unknown (serverbound)

Likely related to recipe book as a replacement for Prepare Crafting Grid.

Packet ID State Bound To Field Name Field Type Notes
0x12 Play 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

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 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, 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.