I hereby claim:
- I am rom1504 on github.
- I am rom1504 (https://keybase.io/rom1504) on keybase.
- I have a public key ASB1Z9sbI8JRLzgvFg_Unf0luj8-SK7QKOGrCcpLDyZF-Qo
To claim this, I am signing this object:
{ | |
"play": { | |
"toClient": { | |
"oldTypes": { | |
"packet_login": [ | |
"container", | |
[ | |
{ | |
"name": "entityId", | |
"type": "i32" |
{ | |
"play": { | |
"toServer": { | |
"oldTypes": { | |
"packet_resource_pack_receive": [ | |
"container", | |
[ | |
{ | |
"name": "hash", | |
"type": "string" |
{ | |
"type": "compound", | |
"name": "", | |
"value": { | |
"DayCycleStopTime": { | |
"type": "int", | |
"value": -1 | |
}, | |
"GameType": { | |
"type": "int", |
var numeric=require("./test/numeric"); | |
var le=numeric.map(n => ({ | |
"type":"l"+n.type, | |
"values":n.values.map(v => ({ | |
"description":v.description, | |
"buffer":v.buffer.slice().reverse(), | |
"value":v.value | |
})) | |
})); |
{ | |
"name": "data_packet_4", | |
"params": { | |
"seqNumber": 0, | |
"encapsulatedPackets": [ | |
{ | |
"reliability": 2, | |
"hasSplit": 0, | |
"length": 33, | |
"messageIndex": 0, |
/<([A-Z][A-Z0-9]*)\b[^>]*>(.*?)</\1>/ | |
/(<link[^>]*(?:\s(?:type=[\"']?(application\/rss\+xml|application\/atom\+xml|application\/rss|application\/atom|application\/rdf\+xml|application\/rdf|text\/rss\+xml|text\/atom\+xml|text\/rss|text\/atom|text\/rdf\+xml|text\/rdf|text\/xml|application\/xml)[\"']?|rel=[\"']?(?:alternate)[\"']?))[^>]*>)/ |
I hereby claim:
To claim this, I am signing this object:
This will contain all mojang position formats:
Name | Description | Provenance | Implementation example |
---|---|---|---|
bitfield | a bitfield of x,y,z with x and z being 26 bits, y being 13 bits | mcpc modern 1.8 | mcdata |
3 f64 | x,y,z in f64 | mcpc modern 1.8 | mcdata |
3 i32 : fixed-point | x,y,z in i32 | mcpc modern 1.8 | mcdata |
2 i32 and 1 i16 | x,z in i32 and y in i16 | mcpc modern 1.7 | mcdata |
2 i32 and 1 i8 | x,z in i32 and y in i8 | mcpc modern 1.7 | [mcdata](https://github.com/Prismar |
{ | |
"handshaking": { | |
"toServer": { | |
"jj": { | |
"id": "0x00", | |
"fields": [ | |
"ushort" | |
] | |
} | |
} |
var fs = require('fs'); | |
var xml2js = require('xml2js'); | |
var parser = new xml2js.Parser(); | |
fs.readFile(__dirname + '/protocol.xml', function(err, data) { | |
parser.parseString(data, function (err, result) { | |
fs.writeFileSync('output.json', JSON.stringify(result, null, 2)); | |
var protocol = JSON.parse(fs.readFileSync(__dirname + '/output.json')); | |