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
- Host: GitHub
- URL: https://github.com/ammaraskar/minecraftpacketnames
- Owner: ammaraskar
- Created: 2015-05-27T22:13:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-28T11:53:31.000Z (over 10 years ago)
- Last Synced: 2025-04-06T06:51:39.450Z (about 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 14
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
}
},
...
},
...
}
}
```