2018-11-04 22:03:22 -05:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2019-01-06 13:04:07 -05:00
|
|
|
local minetest
|
|
|
|
= minetest
|
2018-11-04 22:03:22 -05:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
|
|
|
|
minetest.register_node(modname .. ":fire", {
|
|
|
|
description = "Fire",
|
|
|
|
drawtype = "firelike",
|
|
|
|
visual_scale = 1.5,
|
|
|
|
tiles = {modname .. "_fire.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
light_source = 12,
|
2019-01-06 13:04:07 -05:00
|
|
|
groups = {
|
|
|
|
igniter = 1
|
|
|
|
},
|
2018-11-04 22:03:22 -05:00
|
|
|
damage_per_second = 2,
|
|
|
|
propagates_sunlight = true,
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
2019-01-06 13:04:07 -05:00
|
|
|
buildable_to = true,
|
2018-11-04 22:03:22 -05:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(modname .. ":fuel", {
|
|
|
|
description = "Burning Embers",
|
|
|
|
tiles = {modname .. "_fuel.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
light_source = 6,
|
2019-01-06 13:04:07 -05:00
|
|
|
groups = {
|
|
|
|
igniter = 1,
|
|
|
|
fire_fuel = 1,
|
|
|
|
falling_node = 1
|
|
|
|
},
|
2018-11-04 22:03:22 -05:00
|
|
|
drop = "",
|
|
|
|
diggable = false,
|
|
|
|
on_punch = function(pos, node, puncher)
|
|
|
|
puncher:set_hp(puncher:get_hp() - 1)
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(modname .. ":ash", {
|
|
|
|
description = "Ash",
|
|
|
|
tiles = {modname .. "_ash.png"},
|
|
|
|
groups = { falling_node = 1, crumbly = 3 }
|
|
|
|
})
|