Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
(Reset, added information about undocumented 1.21-pre2)
Tag: Replaced
 
Line 1: Line 1:
This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently 1.5, protocol 60) to the current pre-release, 13w16b (protocol 63). Note that this page contains bleeding-edge information that may not be completely or correctly documented.
+
There is currently a pre-release version available: 1.21-pre2, but it has not yet been documented. 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.
  
== Protocol Version ==
+
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.
  
As of 13w16b the protocol version is 63.
+
== Contents ==
  
== New Packets ==
+
<div style="float:right;">__TOC__</div>
  
=== Steer Vehicle (0x1B) ===
+
=== Data types ===
  
''Client to Server''
+
No changes so far.
  
Sent by client to steer the horse, minecart and boats.
+
=== Packets ===
Horses listen to all directions, boats and minecarts only listen to the positive forward value in combination with the direction the player is looking in.
 
  
{| class="wikitable"
+
No changes so far.
|- class="row0"
 
| class="col0" | Packet ID
 
| class="col1" | Field Name
 
| class="col2" | Field Type
 
| class="col3" | Example
 
| class="col4" | Notes
 
|- class="row1"
 
| class="col0 centeralign" rowspan="4" | 0x1B
 
| class="col1 centeralign" | Sideways
 
| class="col2 centeralign" | float
 
| class="col3 centeralign" | 0.98
 
| class="col4" | Positive to the left of the player
 
|- class="row2"
 
| class="col0 centeralign" | Forward
 
| class="col1 centeralign" | float
 
| class="col2 centeralign" | -0.98
 
| class="col3" | Positive forward
 
|- class="row3"
 
| class="col0 centeralign" | Jump
 
| class="col1 centeralign" | bool
 
| class="col2 centeralign" | true
 
| class="col3" |
 
|- class="row4"
 
| class="col0 centeralign" | Unmount
 
| class="col1 centeralign" | bool
 
| class="col2 centeralign" | false
 
| class="col3" | True when leaving the vehicle
 
|- class="row5"
 
| class="col0" | Total Size:
 
| class="col1 rightalign" colspan="4" | 11 bytes
 
|}
 
  
== Changed Packets ==
+
[[Category:Minecraft Modern]]
 
 
=== Update Health (0x08) ===
 
 
 
''Server to Client''
 
 
 
Sent by the server to update/set the health of the player it is sent to. Added in protocol version 5.
 
 
 
Food saturation acts as a food "overcharge". Food values will not decrease while the saturation is over zero. Players logging in automatically get a saturation of 5.0. Eating food increases the saturation as well as the food bar.
 
 
 
{| class="wikitable"
 
|- class="row0"
 
| class="col0" | Packet ID
 
| class="col1" | Field Name
 
| class="col2" | Field Type
 
| class="col3" | Example
 
| class="col4" | Notes
 
|- class="row1"
 
| class="col0 centeralign" rowspan="3" | 0x08
 
| class="col1 centeralign" | Health
 
| class="col2 centeralign" | '''float'''
 
| class="col3 centeralign" | '''20.0'''
 
| class="col4" | 0 or less = dead, 20 = full HP
 
|- class="row2"
 
| class="col0 centeralign" | Food
 
| class="col1 centeralign" | short
 
| class="col2 centeralign" | 20
 
| class="col3" | 0 - 20
 
|- class="row3"
 
| class="col0 centeralign" | Food Saturation
 
| class="col1 centeralign" | float
 
| class="col2 centeralign" | 5.0
 
| class="col3" | Seems to vary from 0.0 to 5.0 in integer increments
 
|- class="row4"
 
| class="col0" | Total Size:
 
| class="col1 rightalign" colspan="4" | 11 bytes
 
|}
 
 
 
=== Entity Action (0x13) ===
 
 
 
''Client to Server''
 
 
 
Sent at least when crouching, leaving a bed, or sprinting.
 
To send action animation to client use 0x28.
 
The client will send this with Action ID = 3 when "Leave Bed" is clicked.
 
 
 
{| class="wikitable"
 
|- class="row0"
 
| class="col0" | Packet ID
 
| class="col1" | Field Name
 
| class="col2" | Field Type
 
| class="col3" | Example
 
| class="col4" | Notes
 
|- class="row1"
 
| class="col0 centeralign" rowspan="3" | 0x13
 
| class="col1 centeralign" | EID
 
| class="col2 centeralign" | int
 
| class="col3 centeralign" | <code>55534</code>
 
| class="col4" | Player ID
 
|- class="row2"
 
| class="col0 centeralign" | Action ID
 
| class="col1 centeralign" | byte
 
| class="col2 centeralign" | <code>1</code>
 
| class="col3" | The ID of the action, see below.
 
|- class="row2"
 
| class="col0 centeralign" | '''Unknown'''
 
| class="col1 centeralign" | int
 
| class="col2 centeralign" | <code>0</code>
 
| class="col3" | Something to do with horses. Ranged from 0 -> 90
 
|- class="row3"
 
| class="col0" | Total Size:
 
| class="col1 rightalign" colspan="4" | 10 bytes
 
|}
 
 
 
Action ID can be one of the following values:
 
 
 
{| class="wikitable"
 
|-
 
! ID
 
! Action
 
|-
 
| 1
 
| Crouch
 
|-
 
| 2
 
| Uncrouch
 
|-
 
| 3
 
| Leave bed
 
|-
 
| 4
 
| Start sprinting
 
|-
 
| 5
 
| Stop sprinting
 
|}
 
 
 
=== Attach Entity (0x27) ===
 
 
 
''Server to Client''
 
 
 
This packet is sent when a player has been attached to an entity (e.g. Minecart)
 
 
 
{| class="wikitable"
 
|- class="row0"
 
| class="col0" | Packet ID
 
| class="col1" | Field Name
 
| class="col2" | Field Type
 
| class="col3" | Example
 
| class="col4" | Notes
 
|- class="row1"
 
| class="col0 centeralign" rowspan="3" | 0x27
 
| class="col1 centeralign" | Entity ID
 
| class="col2 centeralign" | int
 
| class="col3 centeralign" | <code>1298</code>
 
| class="col4" | The player entity ID being attached
 
|- class="row2"
 
| class="col0 centeralign" | Vehicle ID
 
| class="col1 centeralign" | int
 
| class="col2 centeralign" | <code>1805</code>
 
| class="col3" | The vehicle entity ID attached to (-1 for unattaching)
 
|- class="row2"
 
| class="col0 centeralign" | '''Leash'''
 
| class="col1 centeralign" | boolean
 
| class="col2 centeralign" | <code>false</code>
 
| class="col3" | If set to true, leashes the entity to the vehicle
 
|- class="row3"
 
| class="col0" | Total Size:
 
| class="col1 rightalign" colspan="4" | 10 bytes
 
|}
 
 
 
=== Player Abilities (0xCA) ===
 
 
 
''Two-Way''
 
 
 
The latter 2 bytes are used to indicate the walking and flying speeds respectively, while the first byte is used to determine the value of 4 booleans.
 
 
The flags are whether damage is disabled (god mode, 8, bit 3), whether the player can fly (4, bit 2), whether the player is flying (2, bit 1), and whether the player is in creative mode (1, bit 0).
 
 
To get the values of these booleans, simply AND (&) the byte with 1,2,4 and 8 respectively, to get the 0 or 1 bitwise value. To set them OR (|) them with their repspective masks.
 
The vanilla client sends this packet when the player starts/stops flying with the second parameter changed accordingly. All other parameters are ignored by the vanilla server.
 
 
 
{| class="wikitable"
 
|- class="row0"
 
| class="col0" | Packet ID
 
| class="col1" | Field Name
 
| class="col2" | Field Type
 
| class="col3" | Example
 
| class="col4" | Notes
 
|- class="row1"
 
| class="col0 centeralign" rowspan=4 | 0xCA
 
| class="col1 centeralign" | Flags
 
| class="col2 centeralign" | byte
 
| class="col3 centeralign" | 5
 
| class="col4" |
 
|- class="row2"
 
| class="col0 centeralign" | Flying speed
 
| class="col1 centeralign" | '''float'''
 
| class="col2 centeralign" | '''0.05'''
 
| class="col3" | previous integer value divided by 250
 
|- class="row3"
 
| class="col0 centeralign" | Walking speed
 
| class="col1 centeralign" | '''float'''
 
| class="col2 centeralign" | '''0.1'''
 
| class="col3" | previous integer value divided by 250
 
|- class="row2"
 
| class="col0" | Total Size:
 
| class="col1 rightalign" colspan="4" | 10 bytes
 
|}
 
 
 
== Removed Packets ==
 
 
 
-None-
 
 
 
== Changed Data Types ==
 
 
 
-None-
 
 
 
== Protocol History ==
 
 
 
-None-
 

Latest revision as of 09:24, 6 June 2024

There is currently a pre-release version available: 1.21-pre2, but it has not yet been documented. 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.