diff --git a/crate.lua b/crate.lua index 6797755..ddcc594 100644 --- a/crate.lua +++ b/crate.lua @@ -36,6 +36,7 @@ minetest.register_node("digtron:empty_crate", { -- Create the loaded crate node minetest.set_node(pos, {name="digtron:loaded_crate", param1=node.param1, param2=node.param2}) + minetest.sound_play("machine1", {gain=1.0, pos=pos}) local meta = minetest.get_meta(pos) meta:set_string("crated_layout", layout_string) @@ -110,6 +111,7 @@ minetest.register_node("digtron:loaded_crate", { -- build digtron. Since the empty crate was included in the layout, that will overwrite this loaded crate and destroy it. if layout then + minetest.sound_play("machine2", {gain=1.0, pos=pos}) layout:write_layout_image(sender) end end, diff --git a/sounds/license.txt b/sounds/license.txt index 27f624c..722589d 100644 --- a/sounds/license.txt +++ b/sounds/license.txt @@ -4,6 +4,7 @@ buzzer.ogg - https://freesound.org/people/hypocore/sounds/164090/ - public domai construction.ogg - https://www.freesound.org/people/mediapetros/sounds/109117/ - under the CC BY 3.0 license by mediapetros dingding.ogg - https://www.freesound.org/people/JohnsonBrandEditing/sounds/173932/ public domain via CC 1.0 by JohnsonBrandEditing honk.ogg - https://freesound.org/people/bigmanjoe/sounds/349922/ public domain via CC 1.0 by bigmanjoe +machine1.ogg and machine2.ogg - https://www.freesound.org/people/nuckan/sounds/212941/ public domain via CC 1.0 by nuckan sploosh.ogg - https://www.freesound.org/people/mr_marcello/sounds/257609/ public domain via CC 1.0 by mr_marcello squeal.ogg - https://www.freesound.org/people/RutgerMuller/sounds/104026/ public domain via CC 1.0 by RutgerMuller truck.ogg - https://www.freesound.org/people/jberkuta14/sounds/134898/ public domain via CC 1.0 by jberkuta14 diff --git a/sounds/machine1.ogg b/sounds/machine1.ogg new file mode 100644 index 0000000..e53e70c Binary files /dev/null and b/sounds/machine1.ogg differ diff --git a/sounds/machine2.ogg b/sounds/machine2.ogg new file mode 100644 index 0000000..767e7ca Binary files /dev/null and b/sounds/machine2.ogg differ