{"name":"minecraft-mca","version":"0.6.0","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.2","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.0","dist":{"shasum":"73d1aba4563dd6cc3ed1be1fe98d994dd61764b2","tarball":"http://registry-npm.ywwl.com/minecraft-mca/download/minecraft-mca-0.6.0.tgz","integrity":"sha512-vRYmu/swVzE/+rSNc+DZ63KyidQ/24lzsPpz3CCZeZT8FDdA73OPMmSuRMRscp7RlJ9S0VJamdeg9GKgIC5ayQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICv/7SZpWN5R1uTMv3dLi/9KAuspMTej3ix+pNUPeTmtAiBnLrLpVQDk76MxAv2zGnDWr5PDt8NScz+NRXvuCua7VQ=="}],"size":156057,"noattachment":false,"key":"/minecraft-mca/-/minecraft-mca-0.6.0.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"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":1369254320230,"_cnpm_publish_time":1369254320230,"dist-tags":{"latest":"0.6.1"}}