imported>Tim203 |
imported>Tim203 |
| Line 1,923: |
Line 1,923: |
| |rowspan="1"| Client | | |rowspan="1"| Client |
| |} | | |} |
| | |
| | [[Category:Bedrock Minecraft]] |
Revision as of 21:37, 26 March 2020
- Remember that this page is a WIP, it is not even added to the Main Page. Come back later to see a more complete page.
|
Heads up!
|
This article is about the protocol for the latest stable release of Minecraft Bedrock Edition (1.14.30, protocol 389). See Protocol for the Java Edition Protocol.
|
|
This is the Bedrock Edition Protocol Documentation.
The Bedrock Edition Protocol uses UDP instead of TCP what is used for the Java Edition.
The Bedrock Edition Client uses RakNet as its protocol library.
The default Bedrock Edition port is 19132
Data types
|
|
Size (bytes)
|
Range
|
Notes
|
| byte
|
1
|
0 to 255
|
|
| boolean
|
1
|
0 or 1
|
A byte treated as boolean, 0 is false but anything greater then that is true
|
| short
|
2
|
-32768 to 32767
|
|
| ushort
|
2
|
0 to 65535
|
|
| int
|
4
|
-2147483648 to 2147483647
|
Signed 32-bit integer
|
| uint
|
4
|
0 to 4294967295
|
Unsigned 32-bit integer
|
| long
|
8
|
-2^63 to 2^63-1
|
Signed 64-bit integer
|
| ulong
|
8
|
2^64-1
|
Unsigned 64-bit integer
|
| float
|
4
|
|
A single-precision 32-bit IEEE 754 floating point number
|
| double
|
8
|
|
A double-precision 64-bit IEEE 754 floating point number
|
| VarInt
|
≥ 1 ≤ 5
|
-2147483648 and 2147483647
|
|
| VarLong
|
≥ 1 ≤ 10
|
-2^63 and 2^63-1
|
|
| UUID
|
16
|
A UUID
|
Encoded as two unsigned 64-bit integers: the most significant 64 bits and the least significant 64 bits
|
Packet Format
Login process
Packets
Please note that some packet ids are missing, so they don't line up.
The following packet ids are missing:
0x10, 0x74, 0x7F, 0x80
(16, 116, 127, 128)
Login
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x01
|
Client
|
Play Status
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x02
|
Client
|
Server To Client Handshake
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x03
|
Client
|
Client To Server Handshake
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x04
|
Server
|
Disconnect
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x05
|
Client
|
Resource Packs info
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x06
|
Client
|
Resource Pack Stack
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x07
|
Client
|
Resource Pack Response
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x08
|
Server
|
Text
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x09
|
Client
|
Set Time
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x0A
|
Client
|
Start Game
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x0B
|
Client
|
Add Player
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x0C
|
Client
|
Add Entity
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x0D
|
Client
|
Remove Entity
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x0E
|
Client
|
Add Item Entity
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x0F
|
Client
|
Take Item Entity
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x11
|
Client
|
Move Entity Absolute
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x12
|
Client
|
Move Player
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x13
|
Client
|
Rider Jump
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x14
|
Client
|
Update Block
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x15
|
Client
|
Add Painting
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x16
|
Client
|
Tick Sync
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x17
|
Client
|
Level Sound Event (1)
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x18
|
Client
|
Level Event
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x19
|
Client
|
Block Event
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x1A
|
Client
|
Entity Event
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x1B
|
Client
|
Mob Effect
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x1C
|
Client
|
Update Attributes
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x1D
|
Client
|
Inventory Transaction
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x1E
|
Client
|
Mob Equipment
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x1F
|
Client
|
Mob Armor Equipment
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x20
|
Client
|
Interact
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x21
|
Client
|
Block Pick Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x22
|
Client
|
Entity Pick Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x23
|
Client
|
Player Action
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x24
|
Client
|
Entity Fall
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x25
|
Client
|
Hurt Armor
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x26
|
Client
|
Set Entity Data
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x27
|
Client
|
Set Entity Motion
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x28
|
Client
|
Set Entity Link
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x29
|
Client
|
Set Health
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x2A
|
Client
|
Set Spawn Position
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x2B
|
Client
|
Animate
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x2C
|
Client
|
Respawn
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x2D
|
Client
|
Container Open
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x2E
|
Client
|
Container Close
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x2F
|
Client
|
Player Hotbar
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x30
|
Client
|
Inventory Content
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x31
|
Client
|
Inventory Slot
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x32
|
Client
|
Container Set Data
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x33
|
Client
|
Crafting Data
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x34
|
Client
|
Crafting Event
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x35
|
Client
|
Gui Data Pick Item
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x36
|
Client
|
Adventure Settings
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x37
|
Client
|
Block Entity Data
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x38
|
Client
|
Player Input
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x39
|
Client
|
Level Chunk
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x3A
|
Client
|
Set Commands Enabled
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x3B
|
Client
|
Set Difficulty
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x3C
|
Client
|
Change Dimension
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x3D
|
Client
|
Set Player Game Type
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x3E
|
Client
|
Player List
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x3F
|
Client
|
Simple Event
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x40
|
Client
|
Event
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x41
|
Client
|
Spawn Experience Orb
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x42
|
Client
|
Map Item Data
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x43
|
Client
|
Map Info Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x44
|
Client
|
Request Chunk Radius
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x45
|
Client
|
Chunk Radius Updated
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x46
|
Client
|
ItemFrame Drop Item
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x47
|
Client
|
Game Rules Changed
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x48
|
Client
|
Camera
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x49
|
Client
|
Boss Event
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x4A
|
Client
|
Show Credits
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x4B
|
Client
|
Available Commands
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x4C
|
Client
|
Command Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x4D
|
Client
|
CommandBlock Update
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x4E
|
Client
|
Command Output
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x4F
|
Client
|
Update Trade
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x50
|
Client
|
Update Equip
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x51
|
Client
|
Resource Pack Data Info
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x52
|
Client
|
Resource Pack Chunk Data
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x53
|
Client
|
Resource Pack Chunk Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x54
|
Client
|
Transfer
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x55
|
Client
|
Play Sound
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x56
|
Client
|
Stop Sound
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x57
|
Client
|
Set Title
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x58
|
Client
|
Add Behavior Tree
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x59
|
Client
|
Structure Block Update
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x5A
|
Client
|
Show Store Offer
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x5B
|
Client
|
Purchase Receipt
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x5C
|
Client
|
Player Skin
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x5D
|
Client
|
Sub Client Login
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x5E
|
Client
|
Automation Client Connect
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x5F
|
Client
|
Set Last Hurt By
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x60
|
Client
|
Book Edit
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x61
|
Client
|
Npc Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x62
|
Client
|
Photo Transfer
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x63
|
Client
|
Model Form Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x64
|
Client
|
Model Form Response
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x65
|
Client
|
Server Settings Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x66
|
Client
|
Server Settings Response
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x67
|
Client
|
Show Profile
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x68
|
Client
|
Set Default Game Type
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x69
|
Client
|
Remove Objective
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x6A
|
Client
|
Set Display Objective
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x6B
|
Client
|
Set Score
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x6C
|
Client
|
Lab Table
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x6D
|
Client
|
Update Block Synced
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x6E
|
Client
|
Move Entity Delta
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x6F
|
Client
|
Set Scoreboard Identity
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x70
|
Client
|
Set Local Player As Initialized
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x71
|
Client
|
Update Soft Enum
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x72
|
Client
|
Network Stack Latency
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x73
|
Client
|
Script Custom Event
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x75
|
Client
|
Spawn Particle Effect
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x76
|
Client
|
Available Entity Identifiers
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x77
|
Client
|
Level Sound Event (2)
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x78
|
Client
|
Network Chunk Publisher Update
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x79
|
Client
|
Biome Definition List
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x7A
|
Client
|
Level Sound Event (3)
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x7B
|
Client
|
Level Event Generic
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x7C
|
Client
|
Lectern Update
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x7D
|
Client
|
Video Stream Connect
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x7E
|
Client
|
Client Cache Status
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x81
|
Client
|
On Screen Texture Animation
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x82
|
Client
|
Map Create Locked Copy
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x83
|
Client
|
Structure Template Data Export Request
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x84
|
Client
|
Structure Template Data Export Response
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x85
|
Client
|
Update Block Properties
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x86
|
Client
|
Client Cache Blob Status
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x87
|
Client
|
Client Cache Miss Response
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x88
|
Client
|
Education Settings
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x89
|
Client
|
Emote
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x8A
|
Client
|
Multiplayer Settings
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x8B
|
Client
|
Settings Command
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x8C
|
Client
|
Anvil Damage
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x8D
|
Client
|
Completed Using Item
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x8E
|
Client
|
Network Settings
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x8F
|
Client
|
Player Auth Input
| Packet ID
|
Bound To
|
Field Name
|
Field Type
|
Notes
|
| 0x90
|
Client
|