Table of Contents

KeyName
Typeslot
Typeposition_iii
Typeposition_isi
Typeposition_ibi
TypeentityMetadataItem


Type
slot
Datatype

Field NameField TypeNotes
blockId i16
🔁

if blockId
is -1 void
default
itemCount i8
itemDamage i16
nbtData compressedNbt



Type
position iii
Datatype

Field NameField TypeNotes
x i32
y i32
z i32



Type
position isi
Datatype

Field NameField TypeNotes
x i32
y i16
z i32



Type
position ibi
Datatype

Field NameField TypeNotes
x i32
y u8
z i32




Field NameField TypeNotes
entityMetadataItem

if compareTo
is 0 i8
is 1 i16
is 2 i32
is 3 f32
is 4 string
is 5 slot
is 6
x i32
y i32
z i32
is 7
pitch f32
yaw f32
roll f32



Table of Contents

KeyName
Typepacket


Type
packet
Datatype

Field NameField TypeNotes
name
varint enum



Table of Contents

KeyName
Typepacket_set_protocol
0xfepacket_legacy_server_list_ping
Typepacket


0
packet set protocol
handshaking / toServer / packet_set_protocol (0x00)

Field NameField TypeNotes
protocolVersion varint
serverHost string
serverPort u16
nextState varint



254
packet legacy server list ping
handshaking / toServer / packet_legacy_server_list_ping (0xfe)

Field NameField TypeNotes
payload u8



Type
packet
handshaking / toServer / packet

Field NameField TypeNotes
name
varint enum
0set protocol
254legacy server list ping
params

if name
is set protocol packet_set_protocol
is legacy server list ping packet_legacy_server_list_ping



Table of Contents

KeyName
Typepacket_server_info
0x1packet_ping
Typepacket


0
packet server info
status / toClient / packet_server_info (0x00)

Field NameField TypeNotes
response string



1
packet ping
status / toClient / packet_ping (0x01)

Field NameField TypeNotes
time i64



Type
packet
status / toClient / packet

Field NameField TypeNotes
name
varint enum
0server info
1ping
params

if name
is server info packet_server_info
is ping packet_ping



Table of Contents

KeyName
Typepacket_ping_start
0x1packet_ping
Typepacket


1
packet ping
status / toServer / packet_ping (0x01)

Field NameField TypeNotes
time i64



Type
packet
status / toServer / packet

Field NameField TypeNotes
name
varint enum
0ping start
1ping
params

if name
is ping start packet_ping_start
is ping packet_ping



Table of Contents

KeyName
Typepacket_disconnect
0x1packet_encryption_begin
0x2packet_success
Typepacket


0
packet disconnect
login / toClient / packet_disconnect (0x00)

Field NameField TypeNotes
reason string



1
packet encryption begin
login / toClient / packet_encryption_begin (0x01)

Field NameField TypeNotes
serverId string



2
packet success
login / toClient / packet_success (0x02)

Field NameField TypeNotes
uuid string
username string



Type
packet
login / toClient / packet

Field NameField TypeNotes
name
varint enum
0disconnect
1encryption begin
2success
params

if name
is disconnect packet_disconnect
is encryption begin packet_encryption_begin
is success packet_success



Table of Contents

KeyName
Typepacket_login_start
0x1packet_encryption_begin
Typepacket


0
packet login start
login / toServer / packet_login_start (0x00)

Field NameField TypeNotes
username string



1
packet encryption begin
login / toServer / packet_encryption_begin (0x01)

Field NameField TypeNotes



Type
packet
login / toServer / packet

Field NameField TypeNotes
name
varint enum
0login start
1encryption begin
params

if name
is login start packet_login_start
is encryption begin packet_encryption_begin



Table of Contents

KeyName
Typepacket_keep_alive
0x1packet_login
0x2packet_chat
0x3packet_update_time
0x4packet_entity_equipment
0x5packet_spawn_position
0x6packet_update_health
0x7packet_respawn
0x8packet_position
0x9packet_held_item_slot
0xapacket_bed
0xbpacket_animation
0xcpacket_named_entity_spawn
0xdpacket_collect
0xepacket_spawn_entity
0xfpacket_spawn_entity_living
0x10packet_spawn_entity_painting
0x11packet_spawn_entity_experience_orb
0x12packet_entity_velocity
0x13packet_entity_destroy
0x14packet_entity
0x15packet_rel_entity_move
0x16packet_entity_look
0x17packet_entity_move_look
0x18packet_entity_teleport
0x19packet_entity_head_rotation
0x1apacket_entity_status
0x1bpacket_attach_entity
0x1cpacket_entity_metadata
0x1dpacket_entity_effect
0x1epacket_remove_entity_effect
0x1fpacket_experience
0x20packet_update_attributes
0x21packet_map_chunk
0x22packet_multi_block_change
0x23packet_block_change
0x24packet_block_action
0x25packet_block_break_animation
0x26packet_map_chunk_bulk
0x27packet_explosion
0x28packet_world_event
0x29packet_named_sound_effect
0x2apacket_world_particles
0x2bpacket_game_state_change
0x2cpacket_spawn_entity_weather
0x2dpacket_open_window
0x2epacket_close_window
0x2fpacket_set_slot
0x30packet_window_items
0x31packet_craft_progress_bar
0x32packet_transaction
0x33packet_update_sign
0x34packet_map
0x35packet_tile_entity_data
0x36packet_open_sign_entity
0x37packet_statistics
0x38packet_player_info
0x39packet_abilities
0x3apacket_tab_complete
0x3bpacket_scoreboard_objective
0x3cpacket_scoreboard_score
0x3dpacket_scoreboard_display_objective
0x3epacket_scoreboard_team
0x3fpacket_custom_payload
0x40packet_kick_disconnect
Typepacket


0
packet keep alive
play / toClient / packet_keep_alive (0x00)

Field NameField TypeNotes
keepAliveId i32



1
packet login
play / toClient / packet_login (0x01)

Field NameField TypeNotes
entityId i32
gameMode u8
dimension i8
difficulty u8
maxPlayers u8
levelType string



2
packet chat
play / toClient / packet_chat (0x02)

Field NameField TypeNotes
message string



3
packet update time
play / toClient / packet_update_time (0x03)

Field NameField TypeNotes
age i64
time i64



4
packet entity equipment
play / toClient / packet_entity_equipment (0x04)

Field NameField TypeNotes
entityId i32
slot i16
item slot



5
packet spawn position
play / toClient / packet_spawn_position (0x05)

Field NameField TypeNotes
location position_iii



6
packet update health
play / toClient / packet_update_health (0x06)

Field NameField TypeNotes
health f32
food i16
foodSaturation f32



7
packet respawn
play / toClient / packet_respawn (0x07)

Field NameField TypeNotes
dimension i32
difficulty u8
gamemode u8
levelType string



8
packet position
play / toClient / packet_position (0x08)

Field NameField TypeNotes
x f64
y f64
z f64
yaw f32
pitch f32
onGround bool



9
packet held item slot
play / toClient / packet_held_item_slot (0x09)

Field NameField TypeNotes
slot i8



10
packet bed
play / toClient / packet_bed (0x0a)

Field NameField TypeNotes
entityId i32
location position_ibi



11
packet animation
play / toClient / packet_animation (0x0b)

Field NameField TypeNotes
entityId varint
animation u8



12
packet named entity spawn
play / toClient / packet_named_entity_spawn (0x0c)

Field NameField TypeNotes
entityId varint
playerUUID string
playerName string
data lengthvarint
data
array
name string
value string
signature string
x i32
y i32
z i32
yaw i8
pitch i8
currentItem i16
metadata entityMetadata



13
packet collect
play / toClient / packet_collect (0x0d)

Field NameField TypeNotes
collectedEntityId i32
collectorEntityId i32



14
packet spawn entity
play / toClient / packet_spawn_entity (0x0e)

Field NameField TypeNotes
entityId varint
type i8
x i32
y i32
z i32
pitch i8
yaw i8
objectData
intField i32
velocityX

if intField
is 0 void
default i16
velocityY

if intField
is 0 void
default i16
velocityZ

if intField
is 0 void
default i16



15
packet spawn entity living
play / toClient / packet_spawn_entity_living (0x0f)

Field NameField TypeNotes
entityId varint
type u8
x i32
y i32
z i32
yaw i8
pitch i8
headPitch i8
velocityX i16
velocityY i16
velocityZ i16
metadata entityMetadata



16
packet spawn entity painting
play / toClient / packet_spawn_entity_painting (0x10)

Field NameField TypeNotes
entityId varint
title string
location position_iii
direction i32



17
packet spawn entity experience orb
play / toClient / packet_spawn_entity_experience_orb (0x11)

Field NameField TypeNotes
entityId varint
x i32
y i32
z i32
count i16



18
packet entity velocity
play / toClient / packet_entity_velocity (0x12)

Field NameField TypeNotes
entityId i32
velocityX i16
velocityY i16
velocityZ i16



19
packet entity destroy
play / toClient / packet_entity_destroy (0x13)

Field NameField TypeNotes
entityIds lengthi8
entityIds
array
i32



20
packet entity
play / toClient / packet_entity (0x14)

Field NameField TypeNotes
entityId i32



21
packet rel entity move
play / toClient / packet_rel_entity_move (0x15)

Field NameField TypeNotes
entityId i32
dX i8
dY i8
dZ i8



22
packet entity look
play / toClient / packet_entity_look (0x16)

Field NameField TypeNotes
entityId i32
yaw i8
pitch i8



23
packet entity move look
play / toClient / packet_entity_move_look (0x17)

Field NameField TypeNotes
entityId i32
dX i8
dY i8
dZ i8
yaw i8
pitch i8



24
packet entity teleport
play / toClient / packet_entity_teleport (0x18)

Field NameField TypeNotes
entityId i32
x i32
y i32
z i32
yaw i8
pitch i8



25
packet entity head rotation
play / toClient / packet_entity_head_rotation (0x19)

Field NameField TypeNotes
entityId i32
headYaw i8



26
packet entity status
play / toClient / packet_entity_status (0x1a)

Field NameField TypeNotes
entityId i32
entityStatus i8



27
packet attach entity
play / toClient / packet_attach_entity (0x1b)

Field NameField TypeNotes
entityId i32
vehicleId i32
leash bool



28
packet entity metadata
play / toClient / packet_entity_metadata (0x1c)

Field NameField TypeNotes
entityId i32
metadata entityMetadata



29
packet entity effect
play / toClient / packet_entity_effect (0x1d)

Field NameField TypeNotes
entityId i32
effectId i8
amplifier i8
duration i16



30
packet remove entity effect
play / toClient / packet_remove_entity_effect (0x1e)

Field NameField TypeNotes
entityId i32
effectId i8



31
packet experience
play / toClient / packet_experience (0x1f)

Field NameField TypeNotes
experienceBar f32
level i16
totalExperience i16



32
packet update attributes
play / toClient / packet_update_attributes (0x20)

Field NameField TypeNotes
entityId i32
properties lengthi32
properties
array
key string
value f64
modifiers lengthi16
modifiers
array
uuid UUID
amount f64
operation i8



33
packet map chunk
play / toClient / packet_map_chunk (0x21)

Field NameField TypeNotes
x i32
z i32
groundUp bool
bitMap u16
addBitMap u16



34
packet multi block change
play / toClient / packet_multi_block_change (0x22)

Field NameField TypeNotes
chunkX i32
chunkZ i32
dataLength i32
Length for records below is recordCount from above
records
array
y u8



35
packet block change
play / toClient / packet_block_change (0x23)

Field NameField TypeNotes
location position_ibi
type varint
metadata u8



36
packet block action
play / toClient / packet_block_action (0x24)

Field NameField TypeNotes
location position_isi
byte1 u8
byte2 u8
blockId varint



37
packet block break animation
play / toClient / packet_block_break_animation (0x25)

Field NameField TypeNotes
entityId varint
location position_iii
destroyStage i8



38
packet map chunk bulk
play / toClient / packet_map_chunk_bulk (0x26)

Field NameField TypeNotes
skyLightSent bool
Length for meta below is chunkColumnCount from above
meta
array
x i32
z i32
bitMap u16
addBitMap u16



39
packet explosion
play / toClient / packet_explosion (0x27)

Field NameField TypeNotes
x f32
y f32
z f32
radius f32
affectedBlockOffsets lengthi32
affectedBlockOffsets
array
x i8
y i8
z i8
playerMotionX f32
playerMotionY f32
playerMotionZ f32



40
packet world event
play / toClient / packet_world_event (0x28)

Field NameField TypeNotes
effectId i32
location position_ibi
data i32
global bool



41
packet named sound effect
play / toClient / packet_named_sound_effect (0x29)

Field NameField TypeNotes
soundName string
x i32
y i32
z i32
volume f32
pitch u8



42
packet world particles
play / toClient / packet_world_particles (0x2a)

Field NameField TypeNotes
particleName string
x f32
y f32
z f32
offsetX f32
offsetY f32
offsetZ f32
particleData f32
particles i32



43
packet game state change
play / toClient / packet_game_state_change (0x2b)

Field NameField TypeNotes
reason u8
gameMode f32



44
packet spawn entity weather
play / toClient / packet_spawn_entity_weather (0x2c)

Field NameField TypeNotes
entityId varint
type i8
x i32
y i32
z i32



45
packet open window
play / toClient / packet_open_window (0x2d)

Field NameField TypeNotes
windowId u8
inventoryType u8
windowTitle string
slotCount u8
useProvidedTitle bool
entityId

if inventoryType
is 11 i32
default void



46
packet close window
play / toClient / packet_close_window (0x2e)

Field NameField TypeNotes
windowId u8



47
packet set slot
play / toClient / packet_set_slot (0x2f)

Field NameField TypeNotes
windowId i8
slot i16
item slot



48
packet window items
play / toClient / packet_window_items (0x30)

Field NameField TypeNotes
windowId u8
items lengthi16
items
array
slot



49
packet craft progress bar
play / toClient / packet_craft_progress_bar (0x31)

Field NameField TypeNotes
windowId u8
property i16
value i16



50
packet transaction
play / toClient / packet_transaction (0x32)

Field NameField TypeNotes
windowId u8
action i16
accepted bool



51
packet update sign
play / toClient / packet_update_sign (0x33)

Field NameField TypeNotes
location position_isi
text1 string
text2 string
text3 string
text4 string



52
packet map
play / toClient / packet_map (0x34)

Field NameField TypeNotes
itemDamage varint



53
packet tile entity data
play / toClient / packet_tile_entity_data (0x35)

Field NameField TypeNotes
location position_isi
action u8
nbtData compressedNbt



54
packet open sign entity
play / toClient / packet_open_sign_entity (0x36)

Field NameField TypeNotes
location position_iii



55
packet statistics
play / toClient / packet_statistics (0x37)

Field NameField TypeNotes
entries lengthvarint
entries
array
name string
value varint



56
packet player info
play / toClient / packet_player_info (0x38)

Field NameField TypeNotes
playerName string
online bool
ping i16



57
packet abilities
play / toClient / packet_abilities (0x39)

Field NameField TypeNotes
flags i8
flyingSpeed f32
walkingSpeed f32



58
packet tab complete
play / toClient / packet_tab_complete (0x3a)

Field NameField TypeNotes
matches lengthvarint
matches
array
string



59
packet scoreboard objective
play / toClient / packet_scoreboard_objective (0x3b)

Field NameField TypeNotes
name string
displayText string
action i8



60
packet scoreboard score
play / toClient / packet_scoreboard_score (0x3c)

Field NameField TypeNotes
itemName string
action i8
scoreName

if action
is 1 void
default string
value

if action
is 1 void
default i32



61
packet scoreboard display objective
play / toClient / packet_scoreboard_display_objective (0x3d)

Field NameField TypeNotes
position i8
name string



62
packet scoreboard team
play / toClient / packet_scoreboard_team (0x3e)

Field NameField TypeNotes
team string
mode i8
name

if mode
is 0 string
is 2 string
default void
prefix

if mode
is 0 string
is 2 string
default void
suffix

if mode
is 0 string
is 2 string
default void
friendlyFire

if mode
is 0 i8
is 2 i8
default void
players

if mode
is 0 lengthi16
is 0
array
string
is 3 lengthi16
is 3
array
string
is 4 lengthi16
is 4
array
string
default void



63
packet custom payload
play / toClient / packet_custom_payload (0x3f)

Field NameField TypeNotes
channel string



64
packet kick disconnect
play / toClient / packet_kick_disconnect (0x40)

Field NameField TypeNotes
reason string



Type
packet
play / toClient / packet

Field NameField TypeNotes
name
varint enum
0keep alive
1login
2chat
3update time
4entity equipment
5spawn position
6update health
7respawn
8position
9held item slot
10bed
11animation
12named entity spawn
13collect
14spawn entity
15spawn entity living
16spawn entity painting
17spawn entity experience orb
18entity velocity
19entity destroy
20entity
21rel entity move
22entity look
23entity move look
24entity teleport
25entity head rotation
26entity status
27attach entity
28entity metadata
29entity effect
30remove entity effect
31experience
32update attributes
33map chunk
34multi block change
35block change
36block action
37block break animation
38map chunk bulk
39explosion
40world event
41named sound effect
42world particles
43game state change
44spawn entity weather
45open window
46close window
47set slot
48window items
49craft progress bar
50transaction
51update sign
52map
53tile entity data
54open sign entity
55statistics
56player info
57abilities
58tab complete
59scoreboard objective
60scoreboard score
61scoreboard display objective
62scoreboard team
63custom payload
64kick disconnect
params

if name
is keep alive packet_keep_alive
is login packet_login
is chat packet_chat
is update time packet_update_time
is entity equipment packet_entity_equipment
is spawn position packet_spawn_position
is update health packet_update_health
is respawn packet_respawn
is position packet_position
is held item slot packet_held_item_slot
is bed packet_bed
is animation packet_animation
is named entity spawn packet_named_entity_spawn
is collect packet_collect
is spawn entity packet_spawn_entity
is spawn entity living packet_spawn_entity_living
is spawn entity painting packet_spawn_entity_painting
is spawn entity experience orb packet_spawn_entity_experience_orb
is entity velocity packet_entity_velocity
is entity destroy packet_entity_destroy
is entity packet_entity
is rel entity move packet_rel_entity_move
is entity look packet_entity_look
is entity move look packet_entity_move_look
is entity teleport packet_entity_teleport
is entity head rotation packet_entity_head_rotation
is entity status packet_entity_status
is attach entity packet_attach_entity
is entity metadata packet_entity_metadata
is entity effect packet_entity_effect
is remove entity effect packet_remove_entity_effect
is experience packet_experience
is update attributes packet_update_attributes
is map chunk packet_map_chunk
is multi block change packet_multi_block_change
is block change packet_block_change
is block action packet_block_action
is block break animation packet_block_break_animation
is map chunk bulk packet_map_chunk_bulk
is explosion packet_explosion
is world event packet_world_event
is named sound effect packet_named_sound_effect
is world particles packet_world_particles
is game state change packet_game_state_change
is spawn entity weather packet_spawn_entity_weather
is open window packet_open_window
is close window packet_close_window
is set slot packet_set_slot
is window items packet_window_items
is craft progress bar packet_craft_progress_bar
is transaction packet_transaction
is update sign packet_update_sign
is map packet_map
is tile entity data packet_tile_entity_data
is open sign entity packet_open_sign_entity
is statistics packet_statistics
is player info packet_player_info
is abilities packet_abilities
is tab complete packet_tab_complete
is scoreboard objective packet_scoreboard_objective
is scoreboard score packet_scoreboard_score
is scoreboard display objective packet_scoreboard_display_objective
is scoreboard team packet_scoreboard_team
is custom payload packet_custom_payload
is kick disconnect packet_kick_disconnect



Table of Contents

KeyName
Typepacket_keep_alive
0x1packet_chat
0x2packet_use_entity
0x3packet_flying
0x4packet_position
0x5packet_look
0x6packet_position_look
0x7packet_block_dig
0x8packet_block_place
0x9packet_held_item_slot
0xapacket_arm_animation
0xbpacket_entity_action
0xcpacket_steer_vehicle
0xdpacket_close_window
0xepacket_window_click
0xfpacket_transaction
0x10packet_set_creative_slot
0x11packet_enchant_item
0x12packet_update_sign
0x13packet_abilities
0x14packet_tab_complete
0x15packet_settings
0x16packet_client_command
0x17packet_custom_payload
Typepacket


0
packet keep alive
play / toServer / packet_keep_alive (0x00)

Field NameField TypeNotes
keepAliveId i32



1
packet chat
play / toServer / packet_chat (0x01)

Field NameField TypeNotes
message string



2
packet use entity
play / toServer / packet_use_entity (0x02)

Field NameField TypeNotes
target i32
mouse i8
x

if mouse
is 2 f32
default void
y

if mouse
is 2 f32
default void
z

if mouse
is 2 f32
default void



3
packet flying
play / toServer / packet_flying (0x03)

Field NameField TypeNotes
onGround bool



4
packet position
play / toServer / packet_position (0x04)

Field NameField TypeNotes
x f64
stance f64
y f64
z f64
onGround bool



5
packet look
play / toServer / packet_look (0x05)

Field NameField TypeNotes
yaw f32
pitch f32
onGround bool



6
packet position look
play / toServer / packet_position_look (0x06)

Field NameField TypeNotes
x f64
stance f64
y f64
z f64
yaw f32
pitch f32
onGround bool



7
packet block dig
play / toServer / packet_block_dig (0x07)

Field NameField TypeNotes
status i8
location position_ibi
face i8



8
packet block place
play / toServer / packet_block_place (0x08)

Field NameField TypeNotes
location position_ibi
direction i8
heldItem slot
cursorX i8
cursorY i8
cursorZ i8



9
packet held item slot
play / toServer / packet_held_item_slot (0x09)

Field NameField TypeNotes
slotId i16



10
packet arm animation
play / toServer / packet_arm_animation (0x0a)

Field NameField TypeNotes
entityId i32
animation i8



11
packet entity action
play / toServer / packet_entity_action (0x0b)

Field NameField TypeNotes
entityId i32
actionId i8
jumpBoost i32



12
packet steer vehicle
play / toServer / packet_steer_vehicle (0x0c)

Field NameField TypeNotes
sideways f32
forward f32
jump bool
unmount bool



13
packet close window
play / toServer / packet_close_window (0x0d)

Field NameField TypeNotes
windowId u8



14
packet window click
play / toServer / packet_window_click (0x0e)

Field NameField TypeNotes
windowId i8
slot i16
mouseButton i8
action i16
mode i8
item slot



15
packet transaction
play / toServer / packet_transaction (0x0f)

Field NameField TypeNotes
windowId i8
action i16
accepted bool



16
packet set creative slot
play / toServer / packet_set_creative_slot (0x10)

Field NameField TypeNotes
slot i16
item slot



17
packet enchant item
play / toServer / packet_enchant_item (0x11)

Field NameField TypeNotes
windowId i8
enchantment i8



18
packet update sign
play / toServer / packet_update_sign (0x12)

Field NameField TypeNotes
location position_isi
text1 string
text2 string
text3 string
text4 string



19
packet abilities
play / toServer / packet_abilities (0x13)

Field NameField TypeNotes
flags i8
flyingSpeed f32
walkingSpeed f32



20
packet tab complete
play / toServer / packet_tab_complete (0x14)

Field NameField TypeNotes
text string



21
packet settings
play / toServer / packet_settings (0x15)

Field NameField TypeNotes
locale string
viewDistance i8
chatFlags i8
chatColors bool
difficulty u8
showCape bool



22
packet client command
play / toServer / packet_client_command (0x16)

Field NameField TypeNotes
payload i8



23
packet custom payload
play / toServer / packet_custom_payload (0x17)

Field NameField TypeNotes
channel string



Type
packet
play / toServer / packet

Field NameField TypeNotes
name
varint enum
0keep alive
1chat
2use entity
3flying
4position
5look
6position look
7block dig
8block place
9held item slot
10arm animation
11entity action
12steer vehicle
13close window
14window click
15transaction
16set creative slot
17enchant item
18update sign
19abilities
20tab complete
21settings
22client command
23custom payload
params

if name
is keep alive packet_keep_alive
is chat packet_chat
is use entity packet_use_entity
is flying packet_flying
is position packet_position
is look packet_look
is position look packet_position_look
is block dig packet_block_dig
is block place packet_block_place
is held item slot packet_held_item_slot
is arm animation packet_arm_animation
is entity action packet_entity_action
is steer vehicle packet_steer_vehicle
is close window packet_close_window
is window click packet_window_click
is transaction packet_transaction
is set creative slot packet_set_creative_slot
is enchant item packet_enchant_item
is update sign packet_update_sign
is abilities packet_abilities
is tab complete packet_tab_complete
is settings packet_settings
is client command packet_client_command
is custom payload packet_custom_payload