Skip to content

Instantly share code, notes, and snippets.

@fizzrepo
fizzrepo / protocol.py
Created July 24, 2023 08:56
Minecraft classic protocol implementation in Python
# protocol.py
# Copyright (c) 2023 fizzdev
# MIT License. See LICENSE for more information.
import struct
# Protocol Data Types
def read_byte(data):
return struct.unpack('B', data)[0]