f9abfc5e22
- Make some more materials flammable. - Flammable items in stack form burn up too. - Some items burn away without converting into fuel.
33 lines
795 B
Lua
33 lines
795 B
Lua
-- 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",
|
|
groups = {
|
|
flammable = 2,
|
|
burn_away = 1
|
|
},
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.2,
|
|
groupcaps = {
|
|
choppy = {times={[3]=6.00, [4]=3.00}, uses=5, maxlevel=1},
|
|
}
|
|
},
|
|
})
|
|
|
|
nodecore.register_craft({
|
|
normal = {y = 1},
|
|
nodes = {
|
|
{match = "nc_tree:stick", replace = "air"},
|
|
{y = -1, match = modname .. ":staff", replace = "air"},
|
|
},
|
|
items = {
|
|
{y = -1, name = modname .. ":adze"}
|
|
}
|
|
})
|