mca2js

1.0.0 • Public • Published

mca2js

convert minecraft(tm) .mca region files to JS typed arrays

install

npm install mca2js

usage

var converter = require('mca2json')({start: [0,0,0], distance: 1})
converter.convert(buf, regionX, regionZ).on('data', function(chunk) {})

returns a readable stream that emits voxel chunks

benchmarks

loading all 1024 chunks from a 5mb .mca file and storing the resulting typed arrays in memory in chrome: total time elapsed: 38s, tab memory usage: 328mb

loading all 1024 chunks from a 5mb .mca file, running voxel-crunch on them (RLE) and storing the resulting crunched typed arrays in memory in chrome: total time elapsed: 40s, tab memory usage: 75mb

license

BSD

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0
  • 0.2.1
    0
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i mca2js

Weekly Downloads

0

Version

1.0.0

License

BSD

Last publish

Collaborators

  • maxogden