From b1bf8b74fad97b2783a8b3bf33ed4a7830fc3004 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 11 Apr 2026 09:25:57 -0500 Subject: Add sounds to digistuff noteblock --- .luacheckrc | 1 + digistuff.lua | 25 +++++++++++++++++++++++++ init.lua | 1 + mod.conf | 2 +- 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 digistuff.lua 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 -- cgit v1.2.3