diff --git a/functions.lua b/functions.lua index 1e55b71..4a1fa06 100644 --- a/functions.lua +++ b/functions.lua @@ -653,6 +653,7 @@ digtron.rotate = function(digtron_id, axis, player_name) if permitted then local removed = digtron.remove_from_world(digtron_id, player_name) digtron.build_to_world(digtron_id, rotated_layout, root_pos, player_name) + minetest.sound_play("digtron_hydraulic", {gain = 0.5, pos=dest_pos}) persist_layout(digtron_id, rotated_layout) -- Don't need to do fancy callback checking for digtron nodes since I made all those -- nodes and I know they don't have anything that needs to be done for them. diff --git a/sounds/digtron_hydraulic.ogg b/sounds/digtron_hydraulic.ogg new file mode 100644 index 0000000..995d06a Binary files /dev/null and b/sounds/digtron_hydraulic.ogg differ diff --git a/sounds/license.txt b/sounds/license.txt index 245e486..33e9200 100644 --- a/sounds/license.txt +++ b/sounds/license.txt @@ -11,7 +11,7 @@ digtron_truck.ogg - https://www.freesound.org/people/jberkuta14/sounds/134898/ p digtron_whirr.ogg - https://www.freesound.org/people/daveincamas/sounds/25034/ - under the CC BY 3.0 license by daveincamas digtron_woopwoopwoop.ogg - https://www.freesound.org/people/gregconquest/sounds/188012/ public domain via CC 1.0 by gregconquest digtron_steam_puff.ogg - https://freesound.org/people/Aiwha/sounds/250703/ under the CC BY 3.0 license by Aiwha - +digtron_hydraulic.ogg - https://freesound.org/people/jesabat/sounds/119745/ under the CC BY 3.0 license by jesabat Creative Commons Attribution 3.0 license: