voxel-use

1.0.0 • Public • Published

voxel-use

Use items and blocks (voxel.js addon)

Requires voxel-reach, voxel-registry, voxel-inventory-hotbar

Usage

voxel-use handles "using" items and blocks, by right-clicking (default firealt interact keybinding). Compare to voxel-mine which handles left-clicking to mine. Supported actions:

  • Right-click a voxel in the world to "open" it, if possible (calls interaction handler, example: voxel-workbench)
  • Hold shift (crouch) to suppress this behavior
  • Right-click while holding a block item (in your voxel-inventory-hotbar) to place it in the world on the voxel face clicked
  • Right-click while holding a (non-block) item to do nothing (yet)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i voxel-use

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • deathcap