Go to file
Thomas Rudin 63770caaf2 ordering / stop sound 2019-11-22 09:52:05 +01:00
mods more sounds 2019-05-27 13:16:37 +02:00
textures runtime fixes 2019-04-29 18:10:05 +02:00
.luacheckrc luacheck fixes 2019-10-07 09:26:26 +02:00
api.lua ordering / stop sound 2019-11-22 09:52:05 +01:00
depends.txt doors sounds 2019-04-29 13:12:05 +02:00
form.lua ordering / stop sound 2019-11-22 09:52:05 +01:00
init.lua runtime fixes 2019-04-29 18:10:05 +02:00
license.txt initial files 2019-04-29 11:07:48 +02:00
readme.md builtin sounds 2019-04-29 12:55:15 +02:00
soundblock.lua ordering / stop sound 2019-11-22 09:52:05 +01:00

readme.md

A soundblock that emits sounds with given interval or per mesecon signal

Api

Register custom sounds:

soundblocks.register({
  filename = "default_glass_footstep.ogg",
  key = "default_glass_footsteps",
  name = "Glass footsteps"
})


soundblocks.register({
  filenames = {
    "default_grass_footstep.1.ogg",
    "default_grass_footstep.2.ogg",
    "default_grass_footstep.3.ogg"
  },
  key = "default_grass_footstep",
  name = "Grass footsteps"
})

License

See license.txt

textures/soundblock_block.png