Aaron Suen 464a0e1d89 Finite fire rework.
- There are now 6 degrees of embers.  Better fuel sources will
  make better embers.
- Embers differ only in lifespan; each class lasts twice as long
  as the previous.  Top-grade fuels may last 15 minutes or
  longer.
- Embers decay stochastically.
- Embers decay 16x as fast when smothered, but still go through
  the same lifecycle.

Also:
- Plain ash now reposes.

There are no infinite fuel sources, nor are any specifically
planned at this time.
2019-01-17 00:01:00 -05:00

38 lines
976 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local minetest, nodecore
= minetest, nodecore
-- LUALOCALS > ---------------------------------------------------------
local modname = minetest.get_current_modname()
minetest.register_node(modname .. ":staff", {
description = "Staff",
drawtype = "nodebox",
node_box = nodecore.fixedbox(-1/16, -0.5, -1/16, 1/16, 0.5, 1/16),
tiles = {
"nc_tree_tree_top.png",
"nc_tree_tree_top.png",
"nc_tree_tree_side.png"
},
paramtype = "light",
groups = {
shafty = 2,
snappy = 2,
flammable = 2,
falling_repose = 2
}
})
minetest.register_alias("nc_tree:staff", modname .. ":staff")
nodecore.register_craft({
normal = {y = 1},
nodes = {
{match = "nc_tree:stick", replace = "air"},
{y = -1, match = "nc_tree:stick", replace = modname .. ":staff"}
}
})
if nodecore.register_stick_fire_starting then
nodecore.register_stick_fire_starting(modname .. ":staff")
end