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, the rest is just noise
- [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, 0x3F): Plugin Message {'channel': 'MC|Brand', 'data': b'vanilla'}
- [06:38:31] <<< (0x03, 0x05): Spawn Position {'x': -132, 'y': 64, 'z': 252}
- [06:38:31] <<< (0x03, 0x39): Player Abilities {'flags': 0, 'flying_speed': 0.05000000074505806, 'walking_speed': 0.10000000149011612}
- [06:38:31] <<< (0x03, 0x09): Held Item Change {'slot': 0}
- [06:38:31] <<< (0x03, 0x37): Statistics {'entries': []}
- [06:38:31] <<< (0x03, 0x38): Player List Item {'online': True, 'ping': 0, 'player_name': 'Spock_Bot'}
- [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}
- [06:38:31] <<< (0x03, 0x03): Time Update {'time_of_day': 8296635, 'world_age': 8296635}
- [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}]}
- [06:38:31] <<< (0x03, 0x2F): Set Slot {'window_id': 255, 'slot_data': {'id': -1}, 'slot': -1}
- //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''}
Add Comment
Please, Sign In to add comment