2021-08-06 23:39:39 -04:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
|
|
|
local ItemStack, minetest, nodecore
|
|
|
|
= ItemStack, minetest, nodecore
|
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
|
|
|
|
local adzedef
|
|
|
|
adzedef = {
|
|
|
|
description = "Graveled Adze",
|
|
|
|
inventory_image = "nc_woodwork_adze.png^" .. modname .. "_tip_adze.png",
|
|
|
|
groups = {
|
|
|
|
firestick = 2,
|
|
|
|
flammable = 2
|
|
|
|
},
|
|
|
|
tool_capabilities = nodecore.toolcaps({
|
|
|
|
choppy = 2,
|
|
|
|
crumbly = 2
|
|
|
|
}),
|
|
|
|
sounds = nodecore.sounds("nc_tree_sticky"),
|
|
|
|
after_use = function(_, who)
|
|
|
|
nodecore.toolbreakeffects(who, adzedef)
|
|
|
|
return ItemStack("nc_woodwork:adze")
|
|
|
|
end
|
|
|
|
}
|
|
|
|
minetest.register_tool(modname .. ":adze", adzedef)
|
|
|
|
|
|
|
|
nodecore.register_craft({
|
|
|
|
label = "assemble graveled adze",
|
|
|
|
indexkeys = {"group:gravel"},
|
|
|
|
nodes = {
|
|
|
|
{match = {groups = {gravel = true}}},
|
2021-08-11 18:25:18 -04:00
|
|
|
{
|
|
|
|
y = -1,
|
|
|
|
match = {
|
|
|
|
name = "nc_woodwork:adze",
|
|
|
|
wear = 0.05
|
|
|
|
},
|
|
|
|
replace = "air"
|
|
|
|
},
|
2021-08-06 23:39:39 -04:00
|
|
|
},
|
|
|
|
items = {
|
|
|
|
{name = modname .. ":adze"}
|
|
|
|
}
|
|
|
|
})
|