EinsDreiDreiSieben/mods/cozylights/nodes.lua

38 lines
No EOL
991 B
Lua

-- All possible light levels
for i=1, minetest.LIGHT_MAX do
minetest.register_node("cozylights:light"..i, {
description = "Light Source "..i,
paramtype = "light",
light_source = i,
--tiles ={"invisible.png"},
drawtype = "airlike",
walkable = false,
sunlight_propagates = true,
is_ground_content = false,
buildable_to = true,
pointable = false,
groups = {dig_immediate=3,not_in_creative_inventory=1},
floodable = true,
use_texture_alpha="clip",
})
end
-- two separate loops to keep content ids in order
for i=1, minetest.LIGHT_MAX do
minetest.register_node("cozylights:light_debug"..i, {
description = "Light Source "..i,
paramtype = "light",
light_source = i,
tiles ={"default_glass.png"},
drawtype = "glasslike",
walkable = false,
sunlight_propagates = true,
is_ground_content = false,
buildable_to = false,
pointable = true,
groups = {dig_immediate=3,not_in_creative_inventory=1},
floodable = true,
use_texture_alpha="clip",
})
end