{"name":"minecraft-mca","version":"0.2.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-blockinfo":"0.0.0","minecraft-nbt":"0.0.2","minecraft-chunk":"0.1.0"},"devDependencies":{"minecraft-region":"0.1.1","binary-xhr":"0.0.1","voxel-hello-world":"~0.3.0","voxel-engine":"~0.16.3","voxel-fly":"~0.1.0","browserify":"~2.12.0","beefy":"0.0.11"},"_id":"minecraft-mca@0.2.1","dist":{"shasum":"c14090b08b755c3404ef7ce4f290147e78b1d237","tarball":"http://registry-npm.ywwl.com/minecraft-mca/download/minecraft-mca-0.2.1.tgz","integrity":"sha512-znjvsZkaUV102ZlqrtfvgAi4J/ZgJY5jMuEeq4RD61G7Zucm58s9/BLhVjHyYLPaF9UHDy+tBcgJiGaMbRPUHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICytxhV8vABD1EbOrgtLU4OnaZAgE8W6+3QlnSlxwc4VAiBH4sdo0cNWxeClU45OwnUONoSg5loKFaJXsF6Nh4LL1Q=="}],"size":2671,"noattachment":false,"key":"/minecraft-mca/-/minecraft-mca-0.2.1.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":1365734285233,"_cnpm_publish_time":1365734285233,"dist-tags":{"latest":"0.6.1"}}