Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
(Add Parrot metadata (could be incomplete))
(Player shoulders metadata)
Line 35: Line 35:
 
  ! Type
 
  ! Type
 
  !style="width: 250px;" colspan="2"| Meaning
 
  !style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
 
  | 15
 
  | 15
 
  | VarInt
 
  | VarInt
  | Variant (values ranging from 0 to 3)
+
  |colspan="2"| Variant (values ranging from 0 to 3)
 +
| 0
 +
|}
 +
 
 +
=== Player ===
 +
 
 +
Extends [[#Living|Living]].
 +
 
 +
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 +
|-
 +
| 11
 +
| Float
 +
|colspan="2"| Additional Hearts
 +
| 0.0
 +
|-
 +
| 12
 +
| VarInt
 +
|colspan="2"| Score
 +
| 0
 +
|-
 +
|rowspan="10"| 13
 +
|rowspan="10"| Byte
 +
|colspan="2"| The Displayed Skin Parts bit mask that is sent in [[Protocol#Client Settings|Client Settings]]
 +
|rowspan="10"| 0
 +
|-
 +
! Bit mask !! Meaning
 +
|-
 +
| 0x01 || Cape enabled
 +
|-
 +
| 0x02 || Jacket enabled
 +
|-
 +
| 0x04 || Left sleeve enabled
 +
|-
 +
| 0x08 || Right sleeve enabled
 +
|-
 +
| 0x10 || Left pants leg enabled
 +
|-
 +
| 0x20 || Right pants leg enabled
 +
|-
 +
| 0x40 || Hat enabled
 +
|-
 +
| 0x80 || ''Unused''
 +
|-
 +
| 14
 +
| Byte
 +
|colspan="2"| Main hand (0 : Left, 1 : Right)
 +
| 1
 +
|- style="background-color: #d9ead3;"
 +
| 15
 +
| NBT Tag
 +
|colspan="2"|Left shoulder entity data
 +
|
 +
|- style="background-color: #d9ead3;"
 +
| 16
 +
| NBT Tag
 +
|colspan="2"|Right shoulder entity data
 +
|
 
  |}
 
  |}
  

Revision as of 11:39, 30 March 2017

This page documents the changes from the last stable Minecraft release (currently 1.11.2, protocol 316) to the current pre-release (currently 17w13a, protocol 318). 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

New/modified data types

Entity Metadata

Parrot

Extends TameableAnimal.

Index Type Meaning Default
15 VarInt Variant (values ranging from 0 to 3) 0

Player

Extends Living.

Index Type Meaning Default
11 Float Additional Hearts 0.0
12 VarInt Score 0
13 Byte The Displayed Skin Parts bit mask that is sent in Client Settings 0
Bit mask Meaning
0x01 Cape enabled
0x02 Jacket enabled
0x04 Left sleeve enabled
0x08 Right sleeve enabled
0x10 Left pants leg enabled
0x20 Right pants leg enabled
0x40 Hat enabled
0x80 Unused
14 Byte Main hand (0 : Left, 1 : Right) 1
15 NBT Tag Left shoulder entity data
16 NBT Tag Right shoulder entity data

Block Actions

No changes so far.

Plugin Channels

No changes so far.

Handshaking

Clientbound

No changes so far.

Serverbound

No changes so far.

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 316 318)
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.