{"name":"minecraft-mca","version":"0.6.1","description":"minecraft .mca region data file pure js parser","main":"index.js","scripts":{"start":"beefy demo.js","test":"node test.js"},"repository":"","author":{"name":"Jason Livesay","email":"ithkuil@gmail.com"},"license":"BSD","dependencies":{"minecraft-nbt":"~0.0.3","minecraft-chunk":"~0.3.0"},"devDependencies":{"minecraft-region":"~0.3.0","binary-xhr":"0.0.1","voxel-hello-world":"~0.4.2","voxel-engine":"~0.16.3","voxel-fly":"~0.1.0","browserify":"~2.12.0","beefy":"0.0.11"},"_id":"minecraft-mca@0.6.1","_shasum":"c8fa97e4da2cba104ba5b55de32d562f2659d4ff","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"maxogden","email":"max+DONT+EMAIL+ME@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"dist":{"shasum":"c8fa97e4da2cba104ba5b55de32d562f2659d4ff","tarball":"http://registry-npm.ywwl.com/minecraft-mca/download/minecraft-mca-0.6.1.tgz","integrity":"sha512-U8LVhT+ownq9htPMLLie/P6vdrnY6s/CXgBycLJr227aBD4WG5sOayqDpff3p1+ylSr/HAuYtZ8j8UYU2LKKaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIiBPlR5jD/C1cmvhBAULhxadeofbF6XrbRMMNSE9a6QIgQmWbBFJKYlESoryE2SgGxP8c9kBGiCALumMyzjySsWw="}],"size":156029,"noattachment":false,"key":"/minecraft-mca/-/minecraft-mca-0.6.1.tgz"},"directories":{},"readme":"# minecraft-mca\n\nminecraft .mca region data file pure js parser\n\nextracted from code originally written by @ithkuil for [mcchunkloader](https://github.com/ithkuil/mcchunkloader), turned into a module and now maintained by @maxogden\n\nminecraft is property of Mojang AB\n\n```javascript\n// example using voxel.js\nvar readMCA = require('minecraft-mca')\nvar mcRegion = require('minecraft-region')\nvar region = mcRegion(binaryRegionData)\nvar opts = {ymin: 0, onVoxel: function(x, y, z, type, offsetX, offsetZ) {\n  game.setBlock([(offsetX * 16) + x, y, (offsetZ * 16) + z], type)\n}}\nvar mca = readMCA(region, opts)\nmca.loadAll() // loads all 1024 chunks in this region\nmca.loadNearby(0, 0, 1) // loads 1 in each direction\nmca.loadChunk(4, 4) // loads single chunk\n```\n\nthis module works with [minecraft-chunk](http://github.com/maxogden/minecraft-chunk) and is used by [minecraft-mca](http://github.com/maxogden/minecraft-mca)\n\ndesigned for use with [browserify](http://browserify.org)\n\n# license\n\nBSD","publish_time":1413010606734,"_cnpm_publish_time":1413010606734,"dist-tags":{"latest":"0.6.1"}}