Read Minecraft MCEdit/WorldEdit schematics.
var fs = require('fs');
var Schematic = require('mc-schematic')('1.8');
fs.readFile(__dirname + '/test/schems/test1.schematic', function (err, data) {
Schematic.parse(data, function (err, schem) {
console.log(schem.getBlock(0, 0, 0));
});
});
If you have any problems, questions, or ideas, please file an issue.
Contributions/bugfixes are welcome in the form of pull requests.
npm install --save mc-schematic
entity.updateRaw()
- more block entities
- different entity types (mob, breedable...)
schem.write()