This repository has been archived on 2020-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
minetest-mod-sparktech/sparkdebug/lua/bigstick.lua

15 lines
474 B
Lua

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)