summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2021-12-04 15:55:56 -0600
committercheapie <no-email-for-you@example.com>2021-12-04 15:55:56 -0600
commit47a32ff26ed8945f28dc16ff51148b788b5f7580 (patch)
treeffbb9c69727f1d55e7765b4274a4d761b1805ba0
parent4a3c741fb304fc70098649906cbc55af313abc67 (diff)
downloaddigistuff-47a32ff26ed8945f28dc16ff51148b788b5f7580.tar
digistuff-47a32ff26ed8945f28dc16ff51148b788b5f7580.tar.gz
digistuff-47a32ff26ed8945f28dc16ff51148b788b5f7580.tar.bz2
digistuff-47a32ff26ed8945f28dc16ff51148b788b5f7580.tar.xz
digistuff-47a32ff26ed8945f28dc16ff51148b788b5f7580.zip
Allow other mods to register noteblock sounds
-rw-r--r--noteblock.lua5
1 files changed, 5 insertions, 0 deletions
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},