Difference between revisions of "Pre-release protocol"
(20w10a, no changes.) |
(20w11a) |
||
Line 1: | Line 1: | ||
− | This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently [[Protocol version numbers|1.15.2, protocol 578]]) to the current pre-release (currently [[Protocol version numbers| | + | This page documents the changes from the [[Protocol|last stable Minecraft release]] (currently [[Protocol version numbers|1.15.2, protocol 578]]) to the current pre-release (currently [[Protocol version numbers|20w11a, protocol 706]]). 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. | 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 29: | Line 29: | ||
{{#vardefine:meta_prerelease|1}} | {{#vardefine:meta_prerelease|1}} | ||
+ | |||
+ | === Abstract Arrow === | ||
+ | |||
+ | {{Metadata inherit|Abstract Arrow|inherits=Entity|start_at=7}} | ||
+ | |||
+ | Abstract base class for [[#Tipped Arrow|Tipped Arrow]] (which is used for regular arrows as well as tipped ones) and [[#Spectral Arrow|Spectral Arrow]]. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Index | ||
+ | ! Type | ||
+ | !style="width: 250px;" colspan="2"| Meaning | ||
+ | ! Default | ||
+ | |- | ||
+ | | rowspan="3" | {{Metadata id|}} | ||
+ | | rowspan="3" | Byte | ||
+ | ! Bit mask | ||
+ | ! Meaning | ||
+ | | rowspan="3" | 0 | ||
+ | |- | ||
+ | | 0x01 | ||
+ | | Is critical | ||
+ | |- | ||
+ | | 0x02 | ||
+ | | Is noclip (used by loyalty tridents when returning) | ||
+ | |- | ||
+ | | {{Metadata id|removed}} | ||
+ | | OptUUID | ||
+ | |colspan="2"| Shooter UUID | ||
+ | | Empty | ||
+ | |- | ||
+ | | {{Metadata id|}} | ||
+ | | Byte | ||
+ | |colspan="2"| Peircing level | ||
+ | | 0 | ||
+ | |} | ||
+ | |||
+ | === Tipped Arrow === | ||
+ | |||
+ | {{Metadata inherit|Tipped Arrow|inherits=Abstract Arrow}} | ||
+ | |||
+ | Used for both tipped and regular arrows. If not tipped, then color is set to -1 and no tipped arrow particles are used. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Index | ||
+ | ! Type | ||
+ | !style="width: 250px;" colspan="2"| Meaning | ||
+ | ! Default | ||
+ | |- | ||
+ | | {{Metadata id|}} | ||
+ | | VarInt | ||
+ | |colspan="2"| Color (-1 for no particles) | ||
+ | | -1 | ||
+ | |} | ||
+ | |||
+ | === Spectral Arrow === | ||
+ | |||
+ | {{Metadata inherit|Spectral Arrow|inherits=Abstract Arrow}} | ||
+ | |||
+ | No additional metadata. | ||
+ | |||
+ | === Trident === | ||
+ | |||
+ | {{Metadata inherit|Trident|inherits=Abstract Arrow}} | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Index | ||
+ | ! Type | ||
+ | !style="width: 250px;" colspan="2"| Meaning | ||
+ | ! Default | ||
+ | |- | ||
+ | | {{Metadata id|}} | ||
+ | | VarInt | ||
+ | |colspan="2"| Loyalty level (enchantment) | ||
+ | | 0 | ||
+ | |- | ||
+ | | {{Metadata id|}} | ||
+ | | Boolean | ||
+ | |colspan="2"| Has enchantment glint | ||
+ | | False | ||
+ | |} | ||
=== Hoglin === | === Hoglin === | ||
Line 115: | Line 195: | ||
| Protocol Version | | Protocol Version | ||
| VarInt | | VarInt | ||
− | | See [[protocol version numbers]] (currently {{change|578| | + | | See [[protocol version numbers]] (currently {{change|578|706}}) |
|- | |- | ||
| Server Address | | Server Address |
Revision as of 17:27, 11 March 2020
This page documents the changes from the last stable Minecraft release (currently 1.15.2, protocol 578) to the current pre-release (currently 20w11a, protocol 706). 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
No changes so far.
Entity Metadata
Abstract Arrow
Extends Entity.
Abstract base class for Tipped Arrow (which is used for regular arrows as well as tipped ones) and Spectral Arrow.
Index | Type | Meaning | Default | |
---|---|---|---|---|
7 | Byte | Bit mask | Meaning | 0 |
0x01 | Is critical | |||
0x02 | Is noclip (used by loyalty tridents when returning) | |||
OptUUID | Shooter UUID | Empty | ||
Byte | Peircing level | 0 |
Tipped Arrow
Extends Abstract Arrow.
Used for both tipped and regular arrows. If not tipped, then color is set to -1 and no tipped arrow particles are used.
Index | Type | Meaning | Default | |
---|---|---|---|---|
VarInt | Color (-1 for no particles) | -1 |
Spectral Arrow
Extends Abstract Arrow.
No additional metadata.
Trident
Extends Abstract Arrow.
Index | Type | Meaning | Default | |
---|---|---|---|---|
VarInt | Loyalty level (enchantment) | 0 | ||
Boolean | Has enchantment glint | False |
Hoglin
Extends Animal.
No additional metadata.
Piglin
Extends Monster.
Index | Type | Meaning | Default | |
---|---|---|---|---|
15 | Boolean | Is baby | false | |
16 | Boolean | Is immune to zombification | false | |
17 | Boolean | Is charging crossbow | false |
Zombie Pigman Zombified Piglin
Extends Zombie.
No additional metadata.
Block Actions
No changes so far.
Inventories
No changes so far.
Plugin Channels
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 |
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. Note that SRV records are a complete redirect, e.g. if _minecraft._tcp.example.com points to mc.example.org, users connecting to example.com will provide mc.example.org as server address in addition to connecting to it. | |||
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.