voxel-scriptblock

1.0.1 • Public • Published

voxel-scriptblock

A block to run player-defined JavaScript code (voxel.js plugin)

screenshot

Load with voxel-plugins

To use in-game, acquire the scriptblock item (it'll be under "blocks" with voxel-inventory-creative, or you can type .item scriptblock if voxel-commands is installed) and place it in the world.

Right-click on the top of the block to change the script. By default, it will popup an alert as shown in the screenshot, but you can run any JavaScript code you want, including interacting the game world.

Right-click anywhere else on the block to run the script.

License

MIT

Package Sidebar

Install

npm i voxel-scriptblock

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • deathcap