1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-21 18:11:11 +00:00

Rename minetest.* to core.* in devtest

This commit is contained in:
Lars Müller 2024-10-28 15:57:54 +01:00 committed by GitHub
parent d849d51c2d
commit 88c7a54e08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 914 additions and 914 deletions

View file

@ -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",