summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2026-04-11 09:25:57 -0500
committercheapie <no-email-for-you@example.com>2026-04-11 09:26:44 -0500
commitb1bf8b74fad97b2783a8b3bf33ed4a7830fc3004 (patch)
treee7ae9f4e954e20b501783ee2e297c374826c2733
parent45e74cd1c255fb62aa06d40c92c637a534c65c78 (diff)
downloadcelevator-b1bf8b74fad97b2783a8b3bf33ed4a7830fc3004.tar
celevator-b1bf8b74fad97b2783a8b3bf33ed4a7830fc3004.tar.gz
celevator-b1bf8b74fad97b2783a8b3bf33ed4a7830fc3004.tar.bz2
celevator-b1bf8b74fad97b2783a8b3bf33ed4a7830fc3004.tar.xz
celevator-b1bf8b74fad97b2783a8b3bf33ed4a7830fc3004.zip
Add sounds to digistuff noteblock
-rw-r--r--.luacheckrc1
-rw-r--r--digistuff.lua25
-rw-r--r--init.lua1
-rw-r--r--mod.conf2
4 files changed, 28 insertions, 1 deletions
diff --git a/.luacheckrc b/.luacheckrc
index 3fbc5b1..0a45878 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -14,4 +14,5 @@ read_globals = {
"mesecon",
"digilines",
"xcompat",
+ "digistuff",
}
diff --git a/digistuff.lua b/digistuff.lua
new file mode 100644
index 0000000..687b7e4
--- /dev/null
+++ b/digistuff.lua
@@ -0,0 +1,25 @@
+local nbsounds = {
+ --At the moment this is everything except the nudging buzzer
+ "celevator_brake_apply",
+ "celevator_brake_release",
+ "celevator_cabinet_close",
+ "celevator_cabinet_open",
+ "celevator_car_run",
+ "celevator_car_start",
+ "celevator_car_stop",
+ "celevator_chime_down",
+ "celevator_chime_up",
+ "celevator_controller_start",
+ "celevator_controller_stop",
+ "celevator_door_close",
+ "celevator_door_open",
+ "celevator_door_reverse",
+ "celevator_drive_run",
+ "celevator_motor_accel",
+ "celevator_motor_decel",
+ "celevator_motor_fast",
+ "celevator_motor_slow",
+ "celevator_pi_beep",
+}
+
+for _,i in ipairs(nbsounds) do digistuff.register_nb_sound(i,i) end
diff --git a/init.lua b/init.lua
index 5348231..8e7ebec 100644
--- a/init.lua
+++ b/init.lua
@@ -25,6 +25,7 @@ local integrations = {
"laptop",
"mesecons",
"digilines",
+ "digistuff",
}
for _,i in ipairs(integrations) do
diff --git a/mod.conf b/mod.conf
index 552f37b..6ec6802 100644
--- a/mod.conf
+++ b/mod.conf
@@ -1,5 +1,5 @@
name = celevator
description = Realistic Elevators
-optional_depends = laptop,mesecons,digilines,xcompat,mesecons_lightstone,mesecons_button
+optional_depends = laptop,mesecons,digilines,xcompat,mesecons_lightstone,mesecons_button,digistuff
author = cheapie
min_minetest_version = 5.7