minertools: add beep to geothermometer scan.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
This commit is contained in:
parent
7f0bfc949d
commit
4b55129887
@ -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))
|
||||
|
BIN
minertools/sounds/minertools_beep.ogg
Normal file
BIN
minertools/sounds/minertools_beep.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user