From 4b55129887131a731c0e01fc01e9c26a5d633dba Mon Sep 17 00:00:00 2001 From: Michal Cieslakiewicz Date: Thu, 4 Oct 2018 13:41:44 +0200 Subject: [PATCH] minertools: add beep to geothermometer scan. Signed-off-by: Michal Cieslakiewicz --- minertools/geothermometer.lua | 4 ++++ minertools/sounds/minertools_beep.ogg | Bin 0 -> 4263 bytes 2 files changed, 4 insertions(+) create mode 100644 minertools/sounds/minertools_beep.ogg diff --git a/minertools/geothermometer.lua b/minertools/geothermometer.lua index 6691e50..9d4e1e8 100644 --- a/minertools/geothermometer.lua +++ b/minertools/geothermometer.lua @@ -75,6 +75,10 @@ function geothermometer.show_rel_temp(itemstack, user, pointed_thing) temp_var = temp_var + 1 / ( vd * vd ) end end + minetest.sound_play("minertools_beep", { + to_player = player_name, + gain = 0.8, + }) minetest.chat_send_player(player_name, "[Geothermometer] Temperature gradient for this block is " .. string.format("%+.4f", temp_scale * temp_var)) diff --git a/minertools/sounds/minertools_beep.ogg b/minertools/sounds/minertools_beep.ogg new file mode 100644 index 0000000000000000000000000000000000000000..3edc619abd3a946b375e267c65db19d095d991d8 GIT binary patch literal 4263 zcmahsdstIP_7k1~(MAXe7~9ZIBti5e7?dEkBoKi>6mGaY!sbK3RBQ+eAu3z3ND{<| zl!g!`jV@SXK|wc`hiHA&@=!qJQ9wkBPr%2bb}jH*wEfKu>URIy`R3kx=DcR+%sJ;piaKhFF;huefnzHgW$Mww*p zS+OYjk3Y42mh)=-AT@s5jtWZK5;SPpS_!?RI~9O zO6vM}jly$1gbG;@w++J)IPYFuRvM(T@ynDCeEc00kNjszN-is&0CAIKccJmd>gSA`Wn4AW2&G*ojRKXB5!^Q^i1n#IEah>CXLW)f}9a$5kv zSNN-q@oHn5dZMrxuPmsw0C@md!D*Pmg1}I1$jumZs8Krdr=F-2yP3tI4GDeQKC7`Q z^s#iaF`olmM&4qzPfOlABj>sD79F>%V~rUeR3t3Y^GvK|hOmYl%{S_1)`UUUeSO@( z=!Vd7LxO`I@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