Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Format:
- [timestamp] direction (state, packet_id): packet_name {'field': value, 'field2': value2}
- Direction:
- ">>>" is Serverbound (Client to Server) "<<<" is Clientbound (Server to Client)
- State:
- 0x00 is Handshake State
- 0x01 is Status/Ping State (Not seen here)
- 0x02 is Login State
- 0x03 is Play State
- Packet ID, Packet Name, Fields and Values:
- Packet ID is in hexadecimal, names, fields, and values are identical to those found on the wiki see http://wiki.vg/Protocol
- //Handshake
- [06:38:31] >>> (0x00, 0x00): Handshake {'next_state': 2, 'host': 'localhost', 'port': 25565, 'protocol_version': 4}
- //Login Start
- [06:38:31] >>> (0x02, 0x00): Login Start {'name': 'Spock_Bot'}
- [06:38:31] <<< (0x02, 0x02): Login Success {'username': 'Spock_Bot', 'uuid': '35e828e7a57a3ccd9737007673436ca9'}
- //Login Succeeds
- //Play Starts
- //Only Join Game and Player Position and Look are required
- [06:38:31] <<< (0x03, 0x01): Join Game {'gamemode': 0, 'eid': 227, 'dimension': 0, 'max_players': 20, 'level_type': 'default', 'difficulty': 0}
- [06:38:31] <<< (0x03, 0x08): Player Position and Look {'pitch': 19.199996948242188, 'x': -145.01165981711853, 'y': 99.62000000476837, 'z': 273.21793041597454, 'yaw': 171.3000946044922, 'on_ground': False}
- //First Map Chunk Bulk, binary data removed in this example
- [06:38:31] <<< (0x03, 0x26): Map Chunk Bulk {'metadata': [{'chunk_x': -10, 'primary_bitmap': 127, 'chunk_z': 17, 'add_bitmap': 0}, {'chunk_x': -9, 'primary_bitmap': 127, 'chunk_z': 17, 'add_bitmap': 0}, {'chunk_x': -9, 'primary_bitmap': 127, 'chunk_z': 18, 'add_bitmap': 0}, {'chunk_x': -10, 'primary_bitmap': 63, 'chunk_z': 18, 'add_bitmap': 0}, {'chunk_x': -11, 'primary_bitmap': 31, 'chunk_z': 18, 'add_bitmap': 0}], 'sky_light': True, 'data': b''}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement