Advertisement
NickG

1.7 packet dump (clean)

Feb 23rd, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. Format:
  2. [timestamp] direction (state, packet_id): packet_name {'field': value, 'field2': value2}
  3.  
  4. Direction:
  5. ">>>" is Serverbound (Client to Server) "<<<" is Clientbound (Server to Client)
  6.  
  7. State:
  8. 0x00 is Handshake State
  9. 0x01 is Status/Ping State (Not seen here)
  10. 0x02 is Login State
  11. 0x03 is Play State
  12.  
  13. Packet ID, Packet Name, Fields and Values:
  14. Packet ID is in hexadecimal, names, fields, and values are identical to those found on the wiki see http://wiki.vg/Protocol
  15.  
  16.  
  17. //Handshake
  18. [06:38:31] >>> (0x00, 0x00): Handshake {'next_state': 2, 'host': 'localhost', 'port': 25565, 'protocol_version': 4}
  19.  
  20. //Login Start
  21. [06:38:31] >>> (0x02, 0x00): Login Start {'name': 'Spock_Bot'}
  22. [06:38:31] <<< (0x02, 0x02): Login Success {'username': 'Spock_Bot', 'uuid': '35e828e7a57a3ccd9737007673436ca9'}
  23. //Login Succeeds
  24.  
  25. //Play Starts
  26. //Only Join Game and Player Position and Look are required
  27. [06:38:31] <<< (0x03, 0x01): Join Game {'gamemode': 0, 'eid': 227, 'dimension': 0, 'max_players': 20, 'level_type': 'default', 'difficulty': 0}
  28. [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}
  29.  
  30. //First Map Chunk Bulk, binary data removed in this example
  31. [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