mirror of
https://cheapiesystems.com/git/digistuff
synced 2024-11-28 01:53:45 +01:00
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