minertools: add beep to geothermometer scan.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
This commit is contained in:
Michal Cieslakiewicz 2018-10-04 13:41:44 +02:00
parent 7f0bfc949d
commit 4b55129887
2 changed files with 4 additions and 0 deletions

View File

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

Binary file not shown.