voxel-outline

0.4.3 • Public • Published

voxel-outline

Show an outline around the player's currently targeted block (voxel.js plugin)

screenshot

Load with voxel-plugins. Comparable to voxel-highlight except requires voxel-mesher and voxel-shader, uses gl-modules instead of three.js, and has less functionality.

API

Emits events when the raycast voxel target changes (similar to voxel-highlight):

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

outlinePlugin.on('highlight', function(pos, info) { /* ... */});
outlinePlugin.on('remove', function(pos) { /* ... */});

For an example of this API usage, see voxel-voila.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i voxel-outline

Weekly Downloads

1

Version

0.4.3

License

MIT

Last publish

Collaborators

  • deathcap