Difference between revisions of "Pre-release protocol"

From wiki.vg
Jump to navigation Jump to search
(New Entity IDs)
(Use correct naming for entities, add new entity IDs (minecraft:[entity]))
Line 41: Line 41:
 
! x, z
 
! x, z
 
! y
 
! y
 +
! ID
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 4
 
| 4
Line 46: Line 47:
 
| 0.85
 
| 0.85
 
| 0.85
 
| 0.85
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:elder_guardian</code>
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 5
 
| 5
Line 51: Line 53:
 
| 0.7
 
| 0.7
 
| 2.4
 
| 2.4
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:wither_skeleton</code>
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 6
 
| 6
Line 56: Line 59:
 
| 0.6
 
| 0.6
 
| 1.99
 
| 1.99
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:stray</code>
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 23
 
| 23
Line 61: Line 65:
 
| 0.6
 
| 0.6
 
| 1.95
 
| 1.95
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:husk</code>
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 27
 
| 27
Line 66: Line 71:
 
| 0.6
 
| 0.6
 
| 1.95
 
| 1.95
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:zombie_villager</code>
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 28
 
| 28
Line 71: Line 77:
 
| 1.4
 
| 1.4
 
| 1.6
 
| 1.6
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:skeleton_horse</code>
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 29
 
| 29
Line 76: Line 83:
 
| 1.4
 
| 1.4
 
| 1.6
 
| 1.6
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:zombie_horse</code>
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 31
 
| 31
Line 81: Line 89:
 
| 1.4
 
| 1.4
 
| 1.6
 
| 1.6
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:donkey</code>
 
|- style="background-color: #d9ead3;"
 
|- style="background-color: #d9ead3;"
 
| 32
 
| 32
Line 86: Line 95:
 
| 1.4
 
| 1.4
 
| 1.6
 
| 1.6
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:mule</code>
 
|-
 
|-
 
| 48
 
| 48
Line 101: Line 111:
 
| 0.6
 
| 0.6
 
| 1.7
 
| 1.7
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:creeper</code>
 
|-
 
|-
 
| 51
 
| 51
Line 106: Line 117:
 
| 0.6
 
| 0.6
 
| 1.99
 
| 1.99
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:skeleton</code>
 
|-  
 
|-  
 
| 52
 
| 52
Line 111: Line 123:
 
| 1.4
 
| 1.4
 
| 0.9
 
| 0.9
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:spider</code>
 
|-  
 
|-  
 
| 53
 
| 53
| Giant Zombie
+
| {{change|Giant Zombie|Giant}}
 
| 0.6 * 6
 
| 0.6 * 6
 
| 1.8 * 6
 
| 1.8 * 6
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:giant</code>
 
|-  
 
|-  
 
| 54
 
| 54
Line 121: Line 135:
 
| 0.6
 
| 0.6
 
| 1.8
 
| 1.8
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:zombie</code>
 
|-  
 
|-  
 
| 55
 
| 55
Line 126: Line 141:
 
| 0.51000005 * size
 
| 0.51000005 * size
 
| 0.51000005 * size
 
| 0.51000005 * size
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:slime</code>
 
|-  
 
|-  
 
| 56
 
| 56
Line 131: Line 147:
 
| 4
 
| 4
 
| 4
 
| 4
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:ghast</code>
 
|-  
 
|-  
 
| 57
 
| 57
| Zombie Pigman
+
| {{change|Zombie Pigman|PigZombie}}
 
| 0.6
 
| 0.6
 
| 1.8
 
| 1.8
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:zombie_pigman</code>
 
|-  
 
|-  
 
| 58
 
| 58
Line 141: Line 159:
 
| 0.6
 
| 0.6
 
| 2.9
 
| 2.9
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:enderman</code>
 
|-  
 
|-  
 
| 59
 
| 59
| Cave Spider
+
| {{change|Cave Spider|CaveSpider}}
 
| 0.7
 
| 0.7
 
| 0.5
 
| 0.5
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:cave_spider</code>
 
|-  
 
|-  
 
| 60
 
| 60
Line 151: Line 171:
 
| 0.4
 
| 0.4
 
| 0.3
 
| 0.3
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:silverfish</code>
 
|-  
 
|-  
 
| 61
 
| 61
Line 156: Line 177:
 
| 0.6
 
| 0.6
 
| 1.8
 
| 1.8
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:blaze</code>
 
|-  
 
|-  
 
| 62
 
| 62
| Magma Cube
+
| {{change|Magma Cube|LavaSlime}}
 
| 0.51000005 * size
 
| 0.51000005 * size
 
| 0.51000005 * size
 
| 0.51000005 * size
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:magma_cube</code>
 
|-  
 
|-  
 
| 63
 
| 63
| Ender Dragon
+
| {{change|Ender Dragon|EnderDragon}}
 
| 16.0
 
| 16.0
 
| 8.0
 
| 8.0
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:ender_dragon</code>
 
|-  
 
|-  
 
| 64
 
| 64
| Wither
+
| {{change|Wither|WitherBoss}}
 
| 0.9
 
| 0.9
 
| 3.5
 
| 3.5
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:wither</code>
 
|-  
 
|-  
 
| 65
 
| 65
Line 176: Line 201:
 
| 0.5
 
| 0.5
 
| 0.9
 
| 0.9
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:bat</code>
 
|-  
 
|-  
 
| 66
 
| 66
Line 181: Line 207:
 
| 0.6
 
| 0.6
 
| 1.8
 
| 1.8
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:witch</code>
 
|-  
 
|-  
 
| 67
 
| 67
Line 186: Line 213:
 
| 0.4
 
| 0.4
 
| 0.3
 
| 0.3
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:endermite</code>
 
|-  
 
|-  
 
| 68
 
| 68
Line 191: Line 219:
 
| 0.85
 
| 0.85
 
| 0.85
 
| 0.85
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:guardian</code>
 
|-  
 
|-  
 
| 69
 
| 69
Line 196: Line 225:
 
| 1
 
| 1
 
| 1
 
| 1
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:shulker</code>
 
|-  
 
|-  
 
| 90
 
| 90
Line 201: Line 231:
 
| 0.9
 
| 0.9
 
| 0.9
 
| 0.9
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:pig</code>
 
|-  
 
|-  
 
| 91
 
| 91
Line 206: Line 237:
 
| 0.9
 
| 0.9
 
| 1.3
 
| 1.3
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:sheep</code>
 
|-  
 
|-  
 
| 92
 
| 92
Line 211: Line 243:
 
| 0.9
 
| 0.9
 
| 1.4
 
| 1.4
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:cow</code>
 
|-  
 
|-  
 
| 93
 
| 93
Line 216: Line 249:
 
| 0.4
 
| 0.4
 
| 0.7
 
| 0.7
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:chicken</code>
 
|-  
 
|-  
 
| 94
 
| 94
Line 221: Line 255:
 
| 0.8
 
| 0.8
 
| 0.8
 
| 0.8
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:squid</code>
 
|-  
 
|-  
 
| 95
 
| 95
Line 226: Line 261:
 
| 0.6
 
| 0.6
 
| 0.85
 
| 0.85
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:wolf</code>
 
|-  
 
|-  
 
| 96
 
| 96
| Mooshroom
+
| {{change|Mooshroom|MushroomCow}}
 
| 0.9
 
| 0.9
 
| 1.3
 
| 1.3
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:mooshroom</code>
 
|-  
 
|-  
 
| 97
 
| 97
| Snowman
+
| {{change|Snowman|SnowMan}}
 
| 0.7
 
| 0.7
 
| 1.9
 
| 1.9
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:snowman</code>
 
|-  
 
|-  
 
| 98
 
| 98
| Ocelot
+
| {{change|Ocelot|Ozelot}}
 
| 0.6
 
| 0.6
 
| 0.8
 
| 0.8
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:ocelot</code>
 
|-  
 
|-  
 
| 99
 
| 99
| Iron Golem
+
| {{change|Iron Golem|VillagerGolem}}
 
| 1.4
 
| 1.4
 
| 2.7
 
| 2.7
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:villager_golem</code>
 
|-  
 
|-  
 
| 100
 
| 100
| Horse
+
| {{change|EntityHorse|Horse}}
 
| 1.4
 
| 1.4
 
| 1.6
 
| 1.6
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:horse</code>
 
|-  
 
|-  
 
| 101
 
| 101
Line 256: Line 297:
 
| 0.4
 
| 0.4
 
| 0.5
 
| 0.5
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:rabbit</code>
 
|-  
 
|-  
 
| 102
 
| 102
| Polar Bear
+
| {{change|Polar Bear|PolarBear}}
 
| 1.3
 
| 1.3
 
| 1.4
 
| 1.4
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:polar_bear</code>
 
|-  
 
|-  
 
| 120
 
| 120
Line 266: Line 309:
 
| 0.6
 
| 0.6
 
| 1.95
 
| 1.95
 +
| style="background-color: #d9ead3; text-align: center;" | <code>minecraft:villager</code>
 
|}
 
|}
  

Revision as of 20:17, 10 August 2016

This page documents the changes from the last stable Minecraft release (currently 1.10.2, protocol 210) to the current pre-release (currently 16w32a, protocol 301). 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

No changes so far.

ID Packet name Documentation
Handshaking serverbound
0x00 Handshake Current Pre
Play clientbound
0x03 Spawn Mob Current Pre
0x48 Collect Item Current Pre

New/modified data types

Mobs

Mobs are spawned via Spawn Mob. There are two extra mob types in the code that refer to mobs classes that can never spawn: Mob and Monster (they are always subclasses, aka another more specific type).

Type Name x, z y ID
4 ElderGuardian 0.85 0.85 minecraft:elder_guardian
5 WitherSkeleton 0.7 2.4 minecraft:wither_skeleton
6 Stray 0.6 1.99 minecraft:stray
23 Husk 0.6 1.95 minecraft:husk
27 ZombieVillager 0.6 1.95 minecraft:zombie_villager
28 SkeletonHorse 1.4 1.6 minecraft:skeleton_horse
29 ZombieHorse 1.4 1.6 minecraft:zombie_horse
31 Donkey 1.4 1.6 minecraft:donkey
32 Mule 1.4 1.6 minecraft:mule
48 Mob N/A N/A
49 Monster N/A N/A
50 Creeper 0.6 1.7 minecraft:creeper
51 Skeleton 0.6 1.99 minecraft:skeleton
52 Spider 1.4 0.9 minecraft:spider
53 Giant Zombie Giant 0.6 * 6 1.8 * 6 minecraft:giant
54 Zombie 0.6 1.8 minecraft:zombie
55 Slime 0.51000005 * size 0.51000005 * size minecraft:slime
56 Ghast 4 4 minecraft:ghast
57 Zombie Pigman PigZombie 0.6 1.8 minecraft:zombie_pigman
58 Enderman 0.6 2.9 minecraft:enderman
59 Cave Spider CaveSpider 0.7 0.5 minecraft:cave_spider
60 Silverfish 0.4 0.3 minecraft:silverfish
61 Blaze 0.6 1.8 minecraft:blaze
62 Magma Cube LavaSlime 0.51000005 * size 0.51000005 * size minecraft:magma_cube
63 Ender Dragon EnderDragon 16.0 8.0 minecraft:ender_dragon
64 Wither WitherBoss 0.9 3.5 minecraft:wither
65 Bat 0.5 0.9 minecraft:bat
66 Witch 0.6 1.8 minecraft:witch
67 Endermite 0.4 0.3 minecraft:endermite
68 Guardian 0.85 0.85 minecraft:guardian
69 Shulker 1 1 minecraft:shulker
90 Pig 0.9 0.9 minecraft:pig
91 Sheep 0.9 1.3 minecraft:sheep
92 Cow 0.9 1.4 minecraft:cow
93 Chicken 0.4 0.7 minecraft:chicken
94 Squid 0.8 0.8 minecraft:squid
95 Wolf 0.6 0.85 minecraft:wolf
96 Mooshroom MushroomCow 0.9 1.3 minecraft:mooshroom
97 Snowman SnowMan 0.7 1.9 minecraft:snowman
98 Ocelot Ozelot 0.6 0.8 minecraft:ocelot
99 Iron Golem VillagerGolem 1.4 2.7 minecraft:villager_golem
100 EntityHorse Horse 1.4 1.6 minecraft:horse
101 Rabbit 0.4 0.5 minecraft:rabbit
102 Polar Bear PolarBear 1.3 1.4 minecraft:polar_bear
120 Villager 0.6 1.95 minecraft:villager

Entity Metadata

AbstractSkeleton

Extends Monster.

Index Type Meaning
12 Boolean Is swinging arms

Skeleton

Extends AbstractSkeleton.

Index Type Meaning
12 VarInt Type (Normal = 0, Wither = 1, Stray = 2)
13 Boolean Is swinging arms (Used to animate arms for melee attacks; only used when the skeleton does not have a bow in its hand)

Wither Skeleton

Extends AbstractSkeleton.

Stray

Extends AbstractSkeleton.

Zombie

Extends Monster.

Index Type Meaning
12 Boolean Is baby
13 VarInt Zombie type (0 for zombie, profession+1 for villagers, 6 for Husk)
14 Boolean Is converting
15 14 Boolean Are hands held up

Zombie Villager

Extends Zombie.

Index Type Meaning
15 Boolean Is converting
16 VarInt Profession

Husk

Extends Zombie.

Guardian

Extends Monster.

Index Type Meaning
12 Byte Bit mask Meaning
0x02 is retracting spikes
0x04 is elderly
12 Boolean Is retracting spikes
13 VarInt Target EID

ElderGuardian

Extends Guardian.

AbstractHorse

Extends Animal.

Index Type Meaning
13 Byte Bit mask Meaning
0x01 Unused
0x02 Is Tame
0x04 Is saddled
0x08 Has Chest
0x10 Is Bred (not used on the Notchian server; controlled via the unused Bred NBT flag)
0x20 Is eating
0x40 Is rearing (on hind legs)
0x80 Is mouth open
14 OptUUID Owner

Horse

Extends AbstractHorse.

Index Type Meaning
15 VarInt Variant (Color & Style)
16 VarInt Armor

ZombieHorse

Extends AbstractHorse.

SkeletonHorse

Extends AbstractHorse.

ChestedHorse

Extends AbstractHorse.

Index Type Meaning
15 Boolean Has Chest

Donkey

Extends ChestedHorse.

Mule

Extends ChestedHorse.

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 210 301)
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

Play

Clientbound

Spawn Mob

Sent by the server when a mob entity is spawned.

Packet ID State Bound To Field Name Field Type Notes
0x03 Play Client Entity ID VarInt
Entity UUID UUID
Type Unsigned Byte VarInt The type of mob. See Entities#Mobs
X Double
Y Double
Z Double
Yaw Angle
Pitch Angle
Head Pitch Angle
Velocity X Short Same units as Entity Velocity
Velocity Y Short Same units as Entity Velocity
Velocity Z Short Same units as Entity Velocity
Metadata Entity Metadata

Collect Item

Sent by the server when someone picks up an item lying on the ground — its sole purpose appears to be the animation of the item flying towards you. It doesn't destroy the entity in the client memory, and it doesn't add it to your inventory. The server only checks for items to be picked up after each Player Position (and Player Position And Look) packet sent by the client.

Packet ID State Bound To Field Name Field Type Notes
0x48 Play Client Collected Entity ID VarInt
Collector Entity ID VarInt
Pickup Item Count VarInt Seems to be 1 for XP orbs, otherwise the number of items in the stack.

Serverbound

No changes so far.

Status

Clientbound

No changes so far.

Serverbound

No changes so far.

Login

Clientbound

No changes so far.

Serverbound

No changes so far.