mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Rename “Minimal development test” to “Development Test” (#9928)
This commit is contained in:
parent
b546e8938d
commit
083b285f43
371 changed files with 25 additions and 25 deletions
48
games/devtest/mods/testnodes/light.lua
Normal file
48
games/devtest/mods/testnodes/light.lua
Normal file
|
@ -0,0 +1,48 @@
|
|||
-- Test Nodes: Light test
|
||||
|
||||
local S = minetest.get_translator("testnodes")
|
||||
|
||||
-- All possible light levels
|
||||
for i=1, minetest.LIGHT_MAX do
|
||||
minetest.register_node("testnodes:light"..i, {
|
||||
description = S("Light Source (@1)", i),
|
||||
paramtype = "light",
|
||||
light_source = i,
|
||||
|
||||
|
||||
tiles ={"testnodes_light_"..i..".png"},
|
||||
drawtype = "glasslike",
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {dig_immediate=3},
|
||||
})
|
||||
end
|
||||
|
||||
-- Lets light through, but not sunlight, leading to a
|
||||
-- reduction in light level when light passes through
|
||||
minetest.register_node("testnodes:sunlight_filter", {
|
||||
description = S("Sunlight Filter"),
|
||||
paramtype = "light",
|
||||
|
||||
|
||||
drawtype = "glasslike",
|
||||
tiles = {
|
||||
"testnodes_sunlight_filter.png",
|
||||
},
|
||||
groups = { dig_immediate = 3 },
|
||||
})
|
||||
|
||||
-- Lets light and sunlight through without obstruction
|
||||
minetest.register_node("testnodes:sunlight_propagator", {
|
||||
description = S("Sunlight Propagator"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
||||
|
||||
drawtype = "glasslike",
|
||||
tiles = {
|
||||
"testnodes_sunlight_filter.png^[brighten",
|
||||
},
|
||||
groups = { dig_immediate = 3 },
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue