a90d49404b
- Cannot do "floor feeling" if floor is already lit. - No need for steady-state particles on "floor feeling" nodes.
31 lines
785 B
Lua
31 lines
785 B
Lua
-- LUALOCALS < ---------------------------------------------------------
|
|
local minetest
|
|
= minetest
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local function reg(name, climb, light, fx, lv)
|
|
local def = {
|
|
drawtype = "airlike",
|
|
paramtype = "light",
|
|
sunlight_propagates = true,
|
|
walkable = false,
|
|
pointable = false,
|
|
buildable_to = true,
|
|
air_equivalent = true,
|
|
climbable = climb and true or nil,
|
|
light_source = light or nil,
|
|
groups = {
|
|
[modname] = lv,
|
|
[modname .. "_fx"] = fx and 1 or nil
|
|
}
|
|
}
|
|
return minetest.register_node(modname .. ":" .. name, def)
|
|
end
|
|
|
|
reg("ceil", true, 1, true, 4)
|
|
reg("wall", true, 1, true, 3)
|
|
reg("floor", nil, 1, nil, 2)
|
|
reg("hang", true, nil, nil, 1)
|