mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Rename minetest.*
to core.*
in devtest
This commit is contained in:
parent
d849d51c2d
commit
88c7a54e08
78 changed files with 914 additions and 914 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
local S = minetest.get_translator("testtools")
|
||||
local S = core.get_translator("testtools")
|
||||
|
||||
local function get_func(is_place)
|
||||
return function(itemstack, user, pointed_thing)
|
||||
|
@ -13,19 +13,19 @@ local function get_func(is_place)
|
|||
return
|
||||
end
|
||||
|
||||
local node = minetest.get_node(pos)
|
||||
local pstr = minetest.pos_to_string(pos)
|
||||
local time = minetest.get_timeofday()
|
||||
local sunlight = minetest.get_natural_light(pos)
|
||||
local artificial = minetest.get_artificial_light(node.param1)
|
||||
local node = core.get_node(pos)
|
||||
local pstr = core.pos_to_string(pos)
|
||||
local time = core.get_timeofday()
|
||||
local sunlight = core.get_natural_light(pos)
|
||||
local artificial = core.get_artificial_light(node.param1)
|
||||
local message = ("pos=%s | param1=0x%02x | " ..
|
||||
"sunlight=%d | artificial=%d | timeofday=%.5f" )
|
||||
:format(pstr, node.param1, sunlight, artificial, time)
|
||||
minetest.chat_send_player(user:get_player_name(), message)
|
||||
core.chat_send_player(user:get_player_name(), message)
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_tool("testtools:lighttool", {
|
||||
core.register_tool("testtools:lighttool", {
|
||||
description = S("Light Tool") .. "\n" ..
|
||||
S("Show light values of node") .. "\n" ..
|
||||
S("Punch: Light of node above touched node") .. "\n" ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue