2013-07-11 11:32:37 -07:00
|
|
|
--[[
|
2015-01-12 08:46:30 -08:00
|
|
|
=====================================================================
|
2014-12-27 11:31:31 -08:00
|
|
|
** Map Tools **
|
|
|
|
By Calinou.
|
2013-07-11 11:32:37 -07:00
|
|
|
|
2017-02-19 04:35:29 -08:00
|
|
|
Copyright (c) 2012-2017 Hugo Locurcio and contributors.
|
2015-01-11 13:20:57 -08:00
|
|
|
Licensed under the zlib license. See LICENSE.md for more information.
|
2015-01-12 08:46:30 -08:00
|
|
|
=====================================================================
|
2014-12-27 11:31:31 -08:00
|
|
|
--]]
|
2013-07-11 11:32:37 -07:00
|
|
|
|
2014-12-27 11:31:31 -08:00
|
|
|
maptools = {}
|
2013-07-11 11:32:37 -07:00
|
|
|
|
2014-12-27 11:31:31 -08:00
|
|
|
local S
|
|
|
|
if minetest.get_modpath("intllib") then
|
|
|
|
S = intllib.Getter()
|
|
|
|
else
|
|
|
|
S = function(s) return s end
|
2013-07-11 11:32:37 -07:00
|
|
|
end
|
2014-12-27 11:31:31 -08:00
|
|
|
maptools.intllib = S
|
2013-07-11 11:32:37 -07:00
|
|
|
|
2014-12-27 11:31:31 -08:00
|
|
|
local modpath = minetest.get_modpath("maptools")
|
2013-07-11 11:32:37 -07:00
|
|
|
|
2018-07-27 03:10:09 -07: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 11:31:31 -08: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 12:53:34 -07:00
|
|
|
|
2014-04-30 11:04:44 -07:00
|
|
|
if minetest.setting_getbool("log_mods") then
|
2014-12-27 11:31:31 -08:00
|
|
|
minetest.log("action", S("[maptools] loaded."))
|
2014-04-30 11:04:44 -07:00
|
|
|
end
|