Skip to content

Instantly share code, notes, and snippets.

View GeorgesOatesLarsen's full-sized avatar

Georges Oates Larsen GeorgesOatesLarsen

View GitHub Profile
@GeorgesOatesLarsen
GeorgesOatesLarsen / readChunk_1_9.js
Last active January 7, 2017 14:49 — forked from rom1504/readChunk_1_9.js
read 1.9 chunk using protodef
const fs=require("fs");
var Chunk = require('prismarine-chunk')("1.8");
var Vec3 = require("vec3");
// based on http://wiki.vg/SMP_Map_Format#Format
// testing data from https://download.rom1504.fr/minecraft/chunks/chunks-1.9/
// see http://lunarco.de/minecraft/chunks/ for explanations
// also see https://gist.github.com/Gjum/0375b643ec13a42ab3c0
// and https://github.com/SpockBotMC/SpockBot/blob/0535c31/spockbot/plugins/tools/smpmap.py