mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Rename minetest.*
to core.*
in devtest
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
-- Test Nodes: Light test
|
||||
|
||||
local S = minetest.get_translator("testnodes")
|
||||
local S = core.get_translator("testnodes")
|
||||
|
||||
-- All possible light levels
|
||||
for i=1, minetest.LIGHT_MAX do
|
||||
minetest.register_node("testnodes:light"..string.format("%02d", i), {
|
||||
for i=1, core.LIGHT_MAX do
|
||||
core.register_node("testnodes:light"..string.format("%02d", i), {
|
||||
description = S("Light Source (@1)", i),
|
||||
paramtype = "light",
|
||||
light_source = i,
|
||||
@@ -21,7 +21,7 @@ end
|
||||
|
||||
-- Lets light through, but not sunlight, leading to a
|
||||
-- reduction in light level when light passes through
|
||||
minetest.register_node("testnodes:sunlight_filter", {
|
||||
core.register_node("testnodes:sunlight_filter", {
|
||||
description = S("Sunlight Filter") .."\n"..
|
||||
S("Lets light through, but weakens sunlight"),
|
||||
paramtype = "light",
|
||||
@@ -35,7 +35,7 @@ minetest.register_node("testnodes:sunlight_filter", {
|
||||
})
|
||||
|
||||
-- Lets light and sunlight through without obstruction
|
||||
minetest.register_node("testnodes:sunlight_propagator", {
|
||||
core.register_node("testnodes:sunlight_propagator", {
|
||||
description = S("Sunlight Propagator") .."\n"..
|
||||
S("Lets all light through"),
|
||||
paramtype = "light",
|
||||
|
Reference in New Issue
Block a user