voxel-sfx

1.0.1 • Public • Published

voxel-sfx

Play sound effects on events (voxel.js plugin)

Currently integrates with:

Requires artpacks to be available in game.materials, such as via voxel-texture-shader. Needs a resource pack with sound (example: ProgrammerArt 2.2-dev+).

API

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

sfx.play(name[, loop[, url]]);
  • name: name of the sound for artpacks lookup
  • loop: if true, continuously repeat the sound
  • url: URL of the sound to play, overrides artpacks URL resolution

Example:

sfx.play('damage/fallsmall');

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    4
  • 1.0.0
    0
  • 0.3.0
    1
  • 0.2.0
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i voxel-sfx

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • deathcap