hackedvoxels-blockdata

0.0.1 • Public • Published

hackedvoxels-blockdata

TODO: UPDATE LINKS

Store arbitrary per-block data in chunks

Useful for types of blocks requiring additional information beyond the block ID. Extends the voxel chunk format adding a 'blockdata' structure, mapping coordinates to a data object.

Used by:

Usage

Load with voxel-plugins, then:

var blockdata = game.plugins.get('voxel-blockdata');

Saving data (the data object should be JSON serializable):

blockdata.set(x, y, z, {foo: 'bar'});

Retrieving data:

var bd = blockdata.get(x, y, z);

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i hackedvoxels-blockdata

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • z3t0