mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-27 23:10:17 +02:00
Update prospector.lua
This commit is contained in:
parent
3ece9c5923
commit
5738e44fca
|
@ -48,7 +48,7 @@ minetest.register_tool("technic:prospector", {
|
||||||
end
|
end
|
||||||
if math.random() < 0.02 then found = not found end
|
if math.random() < 0.02 then found = not found end
|
||||||
minetest.chat_send_player(user:get_player_name(), minetest.registered_nodes[toolmeta.target].description.." is "..(found and "present" or "absent").." in "..look_diameter.."x"..look_diameter.."x"..toolmeta.look_depth.." region")
|
minetest.chat_send_player(user:get_player_name(), minetest.registered_nodes[toolmeta.target].description.." is "..(found and "present" or "absent").." in "..look_diameter.."x"..look_diameter.."x"..toolmeta.look_depth.." region")
|
||||||
minetest.sound_play("technic_prospector_"..(found and "hit" or "miss"), { pos = vector.add(user:getpos(), { x = 0, y = 1, z = 0 }), gain = 1.0, max_hear_distance = 10 })
|
minetest.sound_play("technic_prospector_"..(found and "hit" or "miss"), { pos = vector.add(user:get_pos(), { x = 0, y = 1, z = 0 }), gain = 1.0, max_hear_distance = 10 })
|
||||||
return toolstack
|
return toolstack
|
||||||
end,
|
end,
|
||||||
on_place = function(toolstack, user, pointed_thing)
|
on_place = function(toolstack, user, pointed_thing)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user