forked from Mirrorlandia_minetest/digistuff
Allow other mods to register noteblock sounds
This commit is contained in:
parent
4a3c741fb3
commit
47a32ff26e
@ -4,6 +4,11 @@ if not minetest.get_modpath("mesecons_noteblock") then
|
||||
end
|
||||
|
||||
local validnbsounds = dofile(minetest.get_modpath(minetest.get_current_modname())..DIR_DELIM.."nbsounds.lua")
|
||||
|
||||
function digistuff.register_nb_sound(name,filename)
|
||||
validnbsounds[name] = filename
|
||||
end
|
||||
|
||||
minetest.register_node("digistuff:noteblock", {
|
||||
description = "Digilines Noteblock",
|
||||
groups = {cracky=3},
|
||||
|
Loading…
Reference in New Issue
Block a user