# voxel-blockdata

> store arbitrary per-block data in chunks

Latest version **0.2.1** (published 2014-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install voxel-blockdata
pnpm add voxel-blockdata
yarn add voxel-blockdata
bun add voxel-blockdata
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2014-09-17 |
| First published | 2014-01-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | deathcap |
| Keywords | voxel, block, data |

## Links

- npm: https://www.npmjs.com/package/voxel-blockdata
- Repository: git@github.com:deathcap/voxel-blockdata
- Homepage: https://github.com/deathcap/voxel-blockdata
- Issues: https://github.com/deathcap/voxel-blockdata/issues
- npm.io page: https://npm.io/package/voxel-blockdata

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2014-09-17
- 0.2.0 — 2014-04-30
- 0.1.0 — 2014-01-01

## README

# voxel-blockdata

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:

* [voxel-chest](https://github.com/deathcap/voxel-chest)

## Usage

Load with [voxel-plugins](https://github.com/deathcap/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

---
_Source: https://npm.io/package/voxel-blockdata · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
