maptools/init.lua

43 lines
1.1 KiB
Lua
Raw Normal View History

2013-07-11 20:32:37 +02:00
--[[
2015-01-12 17:46:30 +01:00
=====================================================================
2014-12-27 20:31:31 +01:00
** Map Tools **
By Calinou.
2013-07-11 20:32:37 +02:00
2018-09-08 00:31:40 +02:00
Copyright (c) 2012-2015 Calinou and contributors.
2015-01-11 22:20:57 +01:00
Licensed under the zlib license. See LICENSE.md for more information.
2015-01-12 17:46:30 +01:00
=====================================================================
2014-12-27 20:31:31 +01:00
--]]
2013-07-11 20:32:37 +02:00
2014-12-27 20:31:31 +01:00
maptools = {}
2013-07-11 20:32:37 +02:00
2014-12-27 20:31:31 +01:00
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
2013-07-11 20:32:37 +02:00
end
2014-12-27 20:31:31 +01:00
maptools.intllib = S
2013-07-11 20:32:37 +02:00
2014-12-27 20:31:31 +01:00
local modpath = minetest.get_modpath("maptools")
2013-07-11 20:32:37 +02:00
maptools.drop_msg = function(itemstack, player)
local name = player:get_player_name()
minetest.chat_send_player(name, S("[maptools] tools/nodes do not drop!"))
end
2014-12-27 20:31:31 +01:00
dofile(modpath .. "/config.lua")
dofile(modpath .. "/aliases.lua")
dofile(modpath .. "/craftitems.lua")
dofile(modpath .. "/default_nodes.lua")
dofile(modpath .. "/nodes.lua")
dofile(modpath .. "/tools.lua")
2013-07-11 21:53:34 +02:00
2018-09-08 00:31:40 +02:00
--[[
Map Tools by Calinou
Licensed under the zlib license for code and CC BY-SA 3.0 for textures, see LICENSE.txt for info.
--]]
2014-04-30 20:04:44 +02:00
if minetest.setting_getbool("log_mods") then
2014-12-27 20:31:31 +01:00
minetest.log("action", S("[maptools] loaded."))
2014-04-30 20:04:44 +02:00
end