diff options
-rw-r--r-- | README.md | 28 | ||||
-rw-r--r-- | mesecons_pistons/init.lua | 10 | ||||
-rw-r--r-- | mesecons_pistons/sounds/piston_extend.ogg | bin | 0 -> 7060 bytes | |||
-rw-r--r-- | mesecons_pistons/sounds/piston_retract.ogg | bin | 0 -> 7092 bytes |
4 files changed, 25 insertions, 13 deletions
@@ -51,19 +51,21 @@ Who wrote it anyways? --------------------- These awesome people made Mesecons possible! -| Contributor | Contribution | -| --------------- | ---------------------------------- | -| Jat15 | Various tweaks. | -| Jeija | **Main developer! Everything.** | -| Jordach | Noteblock sounds. | -| khonkhortistan | Coding, recipes, textures. | -| Kotolegokot | Nodeboxes for items. | -| minerd247 | Textures. | -| RealBadAngel | Fixes, improvements. | -| sfan5 | Coding, recipes, textures. | -| Uberi/Temperest | Coding, textures, documentation. | -| VanessaE | Coding, recipes, textures, design. | -| Whiskers75 | Logic gates implementation. | +| Contributor | Contribution | +| --------------- | -------------------------------- | +| Jat15 | Various tweaks. | +| Jeija | **Main developer! Everything.** | +| Jordach | Noteblock sounds. | +| khonkhortistan | Code, recipes, textures. | +| Kotolegokot | Nodeboxes for items. | +| minerd247 | Textures. | +| Nore/Novatux | Code. | +| RealBadAngel | Fixes, improvements. | +| sfan5 | Code, recipes, textures. | +| suzenako | Piston sounds. | +| Uberi/Temperest | Code, textures, documentation. | +| VanessaE | Code, recipes, textures, design. | +| Whiskers75 | Logic gates implementation. | There are also a whole bunch of other people helping with everything from code to testing and feedback. Mesecons would also not be possible without their help! diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 26f2040..f044d5a 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -63,6 +63,11 @@ local piston_remove_pusher = function (pos, node) if pushername == pistonspec.pusher then --make sure there actually is a pusher (for compatibility reasons mainly) minetest.env:remove_node(pusherpos) + minetest.sound_play("piston_retract", { + pos = pos, + max_hear_distance = 20, + gain = 0.3, + }) nodeupdate(pusherpos) end end @@ -76,6 +81,11 @@ local piston_on = function (pos, node) if success then minetest.env:add_node(pos, {param2 = node.param2, name = pistonspec.onname}) minetest.env:add_node(np, {param2 = node.param2, name = pistonspec.pusher}) + minetest.sound_play("piston_extend", { + pos = pos, + max_hear_distance = 20, + gain = 0.3, + }) mesecon:mvps_process_stack (stack) mesecon:mvps_move_objects (np, dir, oldstack) end diff --git a/mesecons_pistons/sounds/piston_extend.ogg b/mesecons_pistons/sounds/piston_extend.ogg Binary files differnew file mode 100644 index 0000000..e234ad9 --- /dev/null +++ b/mesecons_pistons/sounds/piston_extend.ogg diff --git a/mesecons_pistons/sounds/piston_retract.ogg b/mesecons_pistons/sounds/piston_retract.ogg Binary files differnew file mode 100644 index 0000000..feb9f04 --- /dev/null +++ b/mesecons_pistons/sounds/piston_retract.ogg |