Use "minetest" instead of "core" table
This commit is contained in:
parent
05152589fa
commit
f2b7392a30
9 changed files with 27 additions and 27 deletions
|
@ -146,7 +146,7 @@ minetest.register_craftitem("mcl_core:apple", {
|
|||
|
||||
-- TODO: Status effects
|
||||
minetest.register_craftitem("mcl_core:apple_gold", {
|
||||
description = core.colorize("#55FFFF", S("Golden Apple")),
|
||||
description = minetest.colorize("#55FFFF", S("Golden Apple")),
|
||||
_doc_items_longdesc = S("Golden apples are precious food items which can be eaten."),
|
||||
wield_image = "mcl_core_apple_golden.png",
|
||||
inventory_image = "mcl_core_apple_golden.png",
|
||||
|
|
|
@ -199,7 +199,7 @@ minetest.register_node("mcl_core:realm_barrier", {
|
|||
-- Prevent placement to protect player from screwing up the world, because the node is not pointable and hard to get rid of.
|
||||
node_placement_prediction = "",
|
||||
on_place = function(pos, placer, itemstack, pointed_thing)
|
||||
minetest.chat_send_player(placer:get_player_name(), core.colorize("#FF0000", "You can't just place a realm barrier by hand!"))
|
||||
minetest.chat_send_player(placer:get_player_name(), minetest.colorize("#FF0000", "You can't just place a realm barrier by hand!"))
|
||||
return
|
||||
end,
|
||||
})
|
||||
|
@ -229,7 +229,7 @@ minetest.register_node("mcl_core:void", {
|
|||
-- Prevent placement to protect player from screwing up the world, because the node is not pointable and hard to get rid of.
|
||||
node_placement_prediction = "",
|
||||
on_place = function(pos, placer, itemstack, pointed_thing)
|
||||
minetest.chat_send_player(placer:get_player_name(), core.colorize("#FF0000", "You can't just place the void by hand!"))
|
||||
minetest.chat_send_player(placer:get_player_name(), minetest.colorize("#FF0000", "You can't just place the void by hand!"))
|
||||
return
|
||||
end,
|
||||
drop = "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue