farlands/mods/tools/init.lua

13 lines
391 B
Lua
Raw Normal View History

2017-02-02 06:58:10 +10:00
2017-02-05 06:37:22 +10:00
minetest.register_craftitem("tools:superpick", {
description = "Super Pickaxe",
2017-02-02 06:58:10 +10:00
inventory_image = "default_tool_diamondpick.png^[colorize:red:100",
liquids_pointable = true,
on_use = function(item, placer, pointed_thing)
if pointed_thing.under == nil then
return end
if minetest.get_node(pointed_thing.under) ~= nil then
minetest.remove_node(pointed_thing.under)
end
end,
})