2018-11-03 18:56:07 -04:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
|
|
|
local minetest, nodecore
|
|
|
|
= minetest, nodecore
|
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
|
|
|
|
minetest.register_tool(modname .. ":adze", {
|
|
|
|
description = "Wooden Adze",
|
|
|
|
inventory_image = modname .. "_adze.png",
|
2019-01-06 14:51:09 -05:00
|
|
|
groups = {
|
2019-01-17 00:01:00 -05:00
|
|
|
flammable = 2
|
2019-01-06 14:51:09 -05:00
|
|
|
},
|
2019-01-24 22:08:05 -05:00
|
|
|
tool_capabilities = nodecore.toolcaps({
|
|
|
|
choppy = 1
|
|
|
|
})
|
2018-11-03 18:56:07 -04:00
|
|
|
})
|
|
|
|
|
2018-12-30 17:36:47 -05:00
|
|
|
nodecore.register_craft({
|
|
|
|
normal = {y = 1},
|
|
|
|
nodes = {
|
|
|
|
{match = "nc_tree:stick", replace = "air"},
|
2018-12-30 18:44:28 -05:00
|
|
|
{y = -1, match = modname .. ":staff", replace = "air"},
|
2018-12-30 17:36:47 -05:00
|
|
|
},
|
|
|
|
items = {
|
|
|
|
{y = -1, name = modname .. ":adze"}
|
|
|
|
}
|
|
|
|
})
|