An open API service indexing awesome lists of open source software.

https://github.com/ammaraskar/minecraftpacketnames

An automatically updating git repo scraping wiki.vg to generate json specification files of minecraft paket names per protocol version
https://github.com/ammaraskar/minecraftpacketnames

Last synced: 10 months ago
JSON representation

An automatically updating git repo scraping wiki.vg to generate json specification files of minecraft paket names per protocol version

Awesome Lists containing this project

README

          

# MinecraftPacketNames
An automatically updating git repo that scrapes wiki.vg to generate a list of minecraft
packet names and IDs for each known protocol version. Grabbed from http://wiki.vg/Protocol_version_numbers

## Dependencies

* [requests](http://docs.python-requests.org/en/latest/)
* [beautifulsoup4](http://www.crummy.com/software/BeautifulSoup/)

Also noted in ``requirements.txt``, use ``pip install -r requirements.txt`` to install them.

## Auto generation

``update_repo.sh`` automatically updates a git repo after scraping and generating the latest
packets file, it can be added under cron to run at whatever time period you want.

## JSON structure

```json
{
// pre/postNetty used to differentiate between game versions above 1.7 where the
// protocol versions were reset with the netty rewrite
"preNetty": {
// The protocol version
"78": {
// Packet id -> Packet name
"0": "Keep Alive",
...
},
...
},

"postNetty": {
// The protocol version
"47": {
// The game state
"Status": {
// Direction of packet
"Serverbound": {
// Packet id -> Packet name
"0": "Request",
"1": "Ping"
},
"Clientbound": {
"0": "Response",
"1": "Ping"
}
},
...
},
...
}
}
```