ms
minecraft-schematic
npm i minecraft-schematic
ms

minecraft-schematic

Read and write Minecraft schematic files

by Will Franzen

0.0.1 (see all)License:MITTypeScript:Not Found
npm i minecraft-schematic
Readme

minecraft-schematic

Read and write Minecraft schematic files.

Usage

var fs = require('fs');
var Schematic = require('minecraft-schematic');

var data = fs.readFileSync('./myawesomehouse.schematic');

Schematic.loadSchematic(data, function(error, build) {
        if (error) throw error;
    build.getWidth();    // 10
    build.getLength();   // 12
    build.getHeight();   // 8
    build.getBlockID(0, 0, 0); // 1
    build.getBlockMeta(0, 0, 0); // 0
    build.setBlockID(3, 3, 3, 5);
    build.setBlockMeta(3, 3, 3, 2);
});

License

MIT.

Downloads/wk

6

GitHub Stars

10

LAST COMMIT

6yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

4

OPEN PRs

1
VersionTagPublished
0.0.1
latest
6yrs ago
No alternatives found
No tutorials found
Add a tutorial