NickG

1.7 packet dump

Feb 23rd, 2014
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 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. //Login Start
  20. [06:38:31] >>> (0x02, 0x00): Login Start {'name': 'Spock_Bot'}
  21. [06:38:31] <<< (0x02, 0x02): Login Success {'username': 'Spock_Bot', 'uuid': '35e828e7a57a3ccd9737007673436ca9'}
  22. //Login Succeeds
  23. //Play Starts
  24. //Only Join Game and Player Position and Look are required, the rest is just noise
  25. [06:38:31] <<< (0x03, 0x01): Join Game {'gamemode': 0, 'eid': 227, 'dimension': 0, 'max_players': 20, 'level_type': 'default', 'difficulty': 0}
  26. [06:38:31] <<< (0x03, 0x3F): Plugin Message {'channel': 'MC|Brand', 'data': b'vanilla'}
  27. [06:38:31] <<< (0x03, 0x05): Spawn Position {'x': -132, 'y': 64, 'z': 252}
  28. [06:38:31] <<< (0x03, 0x39): Player Abilities {'flags': 0, 'flying_speed': 0.05000000074505806, 'walking_speed': 0.10000000149011612}
  29. [06:38:31] <<< (0x03, 0x09): Held Item Change {'slot': 0}
  30. [06:38:31] <<< (0x03, 0x37): Statistics {'entries': []}
  31. [06:38:31] <<< (0x03, 0x38): Player List Item {'online': True, 'ping': 0, 'player_name': 'Spock_Bot'}
  32. [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}
  33. [06:38:31] <<< (0x03, 0x03): Time Update {'time_of_day': 8296635, 'world_age': 8296635}
  34. [06:38:31] <<< (0x03, 0x30): Window Items {'window_id': 0, 'slots': [{'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}, {'id': -1}]}
  35. [06:38:31] <<< (0x03, 0x2F): Set Slot {'window_id': 255, 'slot_data': {'id': -1}, 'slot': -1}
  36. //First Map Chunk Bulk, binary data removed in this example
  37. [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''}
Add Comment
Please, Sign In to add comment