{"name":"minecraft-mca","version":"0.3.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.1.1"},"devDependencies":{"minecraft-region":"0.1.1","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.3.0","dist":{"shasum":"f7135d54826e3ff409ffde880e8f2b8419e2ba60","tarball":"http://registry-npm.ywwl.com/minecraft-mca/download/minecraft-mca-0.3.0.tgz","integrity":"sha512-8WP6Izg/4xtQNb3kSq8WW8YYRSPccUCj//BT4SdfsEoINRaN61AXMm4UuvRiLLo2Br2AilBHMswZcBUO2shYvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIErF4OkxPTaLgtv2ZiZQUhu85wiRuHKMdntucWHzlB48AiEAzOxD4mNemhXhiO9ltxRU+nAGW0ygyE2f/EMVfXggrDM="}],"size":2999,"noattachment":false,"key":"/minecraft-mca/-/minecraft-mca-0.3.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":1365795812143,"_cnpm_publish_time":1365795812143,"dist-tags":{"latest":"0.6.1"}}