mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 13:52:31 +01:00
Added mining drill sound
This commit is contained in:
parent
a0229013ce
commit
845b0607eb
@ -53,6 +53,7 @@ function drill_dig_it (pos, player)
|
|||||||
player:get_inventory():add_item("main", dropped_item)
|
player:get_inventory():add_item("main", dropped_item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
minetest.sound_play("mining_drill", {pos = pos, gain = 1.0, max_hear_distance = 10,})
|
||||||
minetest.env:remove_node(pos)
|
minetest.env:remove_node(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ sonic_screwdriver_max_charge=15000
|
|||||||
if charge ==0 then charge =65535 end
|
if charge ==0 then charge =65535 end
|
||||||
charge=get_RE_item_load(charge,sonic_screwdriver_max_charge)
|
charge=get_RE_item_load(charge,sonic_screwdriver_max_charge)
|
||||||
if charge-100>0 then
|
if charge-100>0 then
|
||||||
minetest.sound_play("technic_sonic_screwdriver", {pos = pos, gain = 0.5, max_hear_distance = 10,})
|
minetest.sound_play("technic_sonic_screwdriver", {pos = pos, gain = 0.3, max_hear_distance = 10,})
|
||||||
local n = node.param2
|
local n = node.param2
|
||||||
if minetest.registered_nodes[node_name].paramtype2 == "facedir" then
|
if minetest.registered_nodes[node_name].paramtype2 == "facedir" then
|
||||||
n = n+1
|
n = n+1
|
||||||
|
BIN
sounds/mining_drill.ogg
Normal file
BIN
sounds/mining_drill.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user