mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +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,9 +1,9 @@
|
|||
local function print_to_everything(msg)
|
||||
minetest.log("action", "[chest] " .. msg)
|
||||
minetest.chat_send_all(msg)
|
||||
core.log("action", "[chest] " .. msg)
|
||||
core.chat_send_all(msg)
|
||||
end
|
||||
|
||||
minetest.register_node("chest:chest", {
|
||||
core.register_node("chest:chest", {
|
||||
description = "Chest" .. "\n" ..
|
||||
"32 inventory slots",
|
||||
tiles ={"chest_chest.png^[sheet:2x2:0,0", "chest_chest.png^[sheet:2x2:0,0",
|
||||
|
@ -13,7 +13,7 @@ minetest.register_node("chest:chest", {
|
|||
groups = {dig_immediate=2,choppy=3,meta_is_privatizable=1},
|
||||
is_ground_content = false,
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local meta = core.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[8,9]"..
|
||||
"list[current_name;main;0,0;8,4;]"..
|
||||
|
@ -24,7 +24,7 @@ minetest.register_node("chest:chest", {
|
|||
inv:set_size("main", 8*4)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local meta = core.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main")
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue