Pre-release protocol

From wiki.vg
Revision as of 20:40, 3 September 2018 by Pokechu22 (talk | contribs) (→‎Clientbound: Remove merged content)
Jump to navigation Jump to search

This page documents the changes from the last stable Minecraft release (currently 1.12.2, protocol 340) to the current pre-release (currently 1.13.1, protocol 401). 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
0x04 Spawn Painting Current Pre
0x07 Statistics Current Pre
0x09 Update Block Entity Current Pre
0x0B Block Change Current Pre
0x0C Boss Bar Current Pre
0x0F 0x0E Chat Message (clientbound) Current (unchanged)
0x10 0x0F Multi Block Change Current Pre
0x0E 0x10 Tab-Complete (clientbound) Current Pre
0x11 Declare Commands Pre
0x11 0x12 Confirm Transaction (clientbound) Current (unchanged)
0x12 0x13 Close Window (clientbound) Current (unchanged)
0x13 0x14 Open Window Current (unchanged)
0x14 0x15 Window Items Current (unchanged)
0x15 0x16 Window Property Current (unchanged)
0x16 0x17 Set Slot Current (unchanged)
0x17 0x18 Set Cooldown Current (unchanged)
0x18 0x19 Plugin Message (clientbound) Current Pre
0x19 0x1A Named Sound Effect Current Pre
0x1A 0x1B Disconnect (play) Current (unchanged)
0x1B 0x1C Entity Status Current (unchanged)
0x1D NBT Query Response Pre
0x1C 0x1E Explosion Current (unchanged)
0x1D 0x1F Unload Chunk Current (unchanged)
0x1E 0x20 Change Game State Current (unchanged)
0x1F 0x21 Keep Alive (clientbound) Current (unchanged)
0x20 0x22 Chunk Data Current Pre
0x21 0x23 Effect Current Pre
0x22 0x24 Spawn Particle Current Pre
0x23 0x25 Join Game Current (unchanged)
0x24 0x26 Map Current Pre
0x25 0x27 Entity Current (unchanged)
0x26 0x28 Entity Relative Move Current (unchanged)
0x27 0x29 Entity Look And Relative Move Current (unchanged)
0x28 0x2A Entity Look Current (unchanged)
0x29 0x2B Vehicle Move (clientbound) Current (unchanged)
0x2A 0x2C Open Sign Editor Current (unchanged)
0x2B 0x2D Craft Recipe Response Current Pre
0x2C 0x2E Player Abilities (clientbound) Current (unchanged)
0x2D 0x2F Combat Event Current (unchanged)
0x2E 0x30 Player List Item Current (unchanged)
0x31 Face Player Pre
0x2F 0x32 Player Position And Look (clientbound) Current (unchanged)
0x30 0x33 Use Bed Current (unchanged)
0x31 0x34 Unlock Recipes Current Pre
0x32 0x35 Destroy Entities Current (unchanged)
0x33 0x36 Remove Entity Effect Current (unchanged)
0x34 0x37 Resource Pack Send Current (unchanged)
0x35 0x38 Respawn Current (unchanged)
0x36 0x39 Entity Head Look Current (unchanged)
0x37 0x3A Select Advancement Tab Current (unchanged)
0x38 0x3B World Border Current (unchanged)
0x39 0x3C Camera Current (unchanged)
0x3A 0x3D Held Item Change (clientbound) Current (unchanged)
0x3B 0x3E Display Scoreboard Current (unchanged)
0x3C 0x3F Entity Metadata Current (unchanged)
0x3D 0x40 Attach Entity Current (unchanged)
0x3E 0x41 Entity Velocity Current (unchanged)
0x3F 0x42 Entity Equipment Current (unchanged)
0x40 0x43 Set Experience Current (unchanged)
0x41 0x44 Update Health Current (unchanged)
0x42 0x45 Scoreboard Objective Current Pre
0x43 0x46 Set Passengers Current (unchanged)
0x44 0x47 Teams Current Pre
0x45 0x48 Update Score Current (unchanged)
0x46 0x49 Spawn Position Current (unchanged)
0x47 0x4A Time Update Current (unchanged)
0x48 0x4B Title Current (unchanged)
0x4C Stop Sound Pre
0x49 0x4D Sound Effect Current (unchanged)
0x4A 0x4E Player List Header And Footer Current (unchanged)
0x4B 0x4F Collect Item Current (unchanged)
0x4C 0x50 Entity Teleport Current (unchanged)
0x4D 0x51 Advancements Current (unchanged)
0x4E 0x52 Entity Properties Current (unchanged)
0x4F 0x53 Entity Effect Current (unchanged)
0x54 Declare Recipes Pre
0x55 Tags Pre
Play serverbound
0x01 Query Block NBT Pre
0x01 0x05 Tab-Complete (serverbound) Current Pre
0x05 0x06 Confirm Transaction (serverbound) Current (unchanged)
0x06 0x07 Enchant Item Current (unchanged)
0x07 0x08 Click Window Current (unchanged)
0x08 0x09 Close Window (serverbound) Current (unchanged)
0x09 0x0A Plugin message (serverbound) Current Pre
0x0B Edit Book Pre
0x0C Query Entity NBT Pre
0x0A 0x0D Use Entity Current (unchanged)
0x0B 0x0E Keep Alive (serverbound) Current (unchanged)
0x0C 0x0F Player Current (unchanged)
0x0D 0x10 Player Position Current (unchanged)
0x0E 0x11 Player Position And Look (serverbound) Current (unchanged)
0x0F 0x12 Player Look Current (unchanged)
0x10 0x13 Vehicle Move (serverbound) Current (unchanged)
0x11 0x14 Steer Boat Current (unchanged)
0x15 Pick Item Pre
0x12 0x16 Craft Recipe Request Current Pre
0x13 0x17 Player Abilities (serverbound) Current (unchanged)
0x14 0x18 Player Digging Current (unchanged)
0x15 0x19 Entity Action Current (unchanged)
0x16 0x1A Steer Vehicle Current (unchanged)
0x17 0x1B Recipe Book Data Current Pre
0x1C Name Item Pre
0x18 0x1D Resource Pack Status Current (unchanged)
0x19 0x1E Advancement Tab Current (unchanged)
0x1F Select Trade Pre
0x20 Set Beacon Effect Pre
0x1A 0x21 Held Item Change (serverbound) Current (unchanged)
0x22 Update Command Block Pre
0x23 Update Command Block Minecart Pre
0x1B 0x24 Creative Inventory Action Current (unchanged)
0x25 Update Structure Block Pre
0x1C 0x26 Update Sign Current (unchanged)
0x1D 0x27 Animation (serverbound) Current (unchanged)
0x1E 0x28 Spectate Current (unchanged)
0x1F 0x29 Player Block Placement Current (unchanged)
0x20 0x2A Use Item Current (unchanged)
Login clientbound
0x04 Login Plugin Request Pre
Login serverbound
0x02 Login Plugin Response Pre

New/modified data types

No changes so far.

Entity Metadata Format

No changes so far.

Block Actions

No changes so far.

Play

Clientbound

No changes so far.

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 340 401)
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.