0.6.1 • Published 10 years ago

minecraft-mca v0.6.1

Weekly downloads
3
License
BSD
Repository
-
Last release
10 years ago

minecraft-mca

minecraft .mca region data file pure js parser

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

minecraft is property of Mojang AB

// example using voxel.js
var readMCA = require('minecraft-mca')
var mcRegion = require('minecraft-region')
var region = mcRegion(binaryRegionData)
var opts = {ymin: 0, onVoxel: function(x, y, z, type, offsetX, offsetZ) {
  game.setBlock([(offsetX * 16) + x, y, (offsetZ * 16) + z], type)
}}
var mca = readMCA(region, opts)
mca.loadAll() // loads all 1024 chunks in this region
mca.loadNearby(0, 0, 1) // loads 1 in each direction
mca.loadChunk(4, 4) // loads single chunk

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

designed for use with browserify

license

BSD

0.6.1

10 years ago

0.6.0

11 years ago

0.5.0

11 years ago

0.4.0

11 years ago

0.3.0

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago