Difference between revisions of "Bedrock Protocol"

From wiki.vg
Jump to navigation Jump to search
(Initial version)
 
Line 8: Line 8:
 
   |ICON =  
 
   |ICON =  
 
   |HEADING = Heads up!
 
   |HEADING = Heads up!
   |CONTENT = This article is about the protocol for the latest '''stable''' release of Minecraft '''Bedrock Edition''' ([[Bedrock Protocol version numbers|1.14.30, protocol 389]]). For Java Edition, see [[Protocol]].
+
   |CONTENT = This article is about the protocol for the latest '''stable''' release of Minecraft '''Bedrock Edition''' ([[Bedrock Protocol version numbers|1.14.30, protocol 389]]). See [[Protocol]] for the Java Edition Protocol.
 
}}
 
}}
  

Revision as of 13:36, 20 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