minecraft-region
parses chunks out of a minecraft region file
Last updated 14 years ago by maxogden .
BSD · Original npm · Tarball · package.json
$ npm install minecraft-region 
SYNC missed versions from official npm registry.

minecraft-region

parses chunks out of a minecraft region file

extracted from code originally written by @ithkuil for mcchunkloader, turned into a module and now maintained by @maxogden

minecraft is property of Mojang AB

var mcRegion = require('minecraft-region')
var region = mcRegion(binaryRegionData) // from a .mca file
var chunkX = 0
var chunkY = 0
if (region.hasChunk(chunkX, chunkY))
  var chunk = region.getChunk(chunkX, chunkY)

now use the chunk with minecraft-region to get voxel data

this module works with minecraft-chunk and is used by minecraft-mca

designed for use with browserify

license

BSD

Current Tags

  • 0.3.1                                ...           latest (14 years ago)

9 Versions

  • 0.3.1                                ...           14 years ago
  • 0.3.0                                ...           14 years ago
  • 0.1.3                                ...           14 years ago
  • 0.1.2                                ...           14 years ago
  • 0.1.1                                ...           14 years ago
  • 0.1.0                                ...           14 years ago
  • 0.0.2                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
  • 0.0.0                                ...           14 years ago
Maintainers (1)
Downloads
Total 27
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 10
Last Month 9
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE