voxel-scriptblock

voxel
js
voxel-scriptblock JS library on GitHub voxel-scriptblock JS library on npm Download voxel-scriptblock JS library

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

Version 1.0.1 License MIT
voxel-scriptblock has no homepage
voxel-scriptblock JS library on GitHub
voxel-scriptblock JS library on npm
Download voxel-scriptblock JS library
Keywords
voxelpluginscriptblock

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