added sounds to crate packing and unpacking

This commit is contained in:
FaceDeer 2017-01-17 00:31:41 -07:00
parent 376f83cdd6
commit 9ddec013de
4 changed files with 3 additions and 0 deletions

@ -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,

@ -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

BIN
sounds/machine1.ogg Normal file

Binary file not shown.

BIN
sounds/machine2.ogg Normal file

Binary file not shown.