add big stick
This commit is contained in:
parent
1d6d8eeb70
commit
751cb12ea0
14
sparkdebug/lua/bigstick.lua
Normal file
14
sparkdebug/lua/bigstick.lua
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
local name = "sparkdebug:bigstick"
|
||||||
|
local dictionary = {}
|
||||||
|
local dig_stlye_alt = minetest.settings:get_bool("spark_dig_stlye_alt")
|
||||||
|
local on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
if pointed_thing["type"] == "node" then
|
||||||
|
sparktech.dig_node(pointed_thing["under"], placer:get_inventory(), "main", false, placer)
|
||||||
|
end
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
|
||||||
|
dictionary["on_place"] = on_place
|
||||||
|
dictionary["inventory_image"] = "bigstick.png"
|
||||||
|
|
||||||
|
minetest.register_tool(name, dictionary)
|
Loading…
x
Reference in New Issue
Block a user