This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |