Skip to content
parses chunks out of a minecraft region file
Branch: master
Clone or download
Latest commit 3518567 May 23, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore 0.0.2 Apr 4, 2013
index.js Mod that handles negatives May 18, 2013
package.json 0.3.1 - fix mod bug May 23, 2013
r.0.1.mca
readme.md readme Apr 9, 2013
region.coffee 0.0.2 Apr 4, 2013
test.js
zlib-inflate.min.js
zlibjs-node.js

readme.md

minecraft-region

parses chunks out of a minecraft region file

extracted from code originally written by @ithkuil for mcchunkloader, turned into a module and now maintained by @maxogden

minecraft is property of Mojang AB

var mcRegion = require('minecraft-region')
var region = mcRegion(binaryRegionData) // from a .mca file
var chunkX = 0
var chunkY = 0
if (region.hasChunk(chunkX, chunkY))
  var chunk = region.getChunk(chunkX, chunkY)

now use the chunk with minecraft-region to get voxel data

this module works with minecraft-chunk and is used by minecraft-mca

designed for use with browserify

license

BSD

You can’t perform that action at this time.