From 47a32ff26ed8945f28dc16ff51148b788b5f7580 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 4 Dec 2021 15:55:56 -0600 Subject: Allow other mods to register noteblock sounds --- noteblock.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'noteblock.lua') diff --git a/noteblock.lua b/noteblock.lua index 80c4936..58bb747 100644 --- a/noteblock.lua +++ b/noteblock.lua @@ -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}, -- cgit v1.2.3