summaryrefslogtreecommitdiff
path: root/maptools/init.lua
blob: a7ae4a59cf9659366c349f5d61444b6475654c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--[[
=====================================================================
** Map Tools **
By Calinou.

Copyright © 2012-2019 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
=====================================================================
--]]

maptools = {}

local modpath = minetest.get_modpath("maptools")

local S, NS = dofile(modpath .. "/intllib.lua")
maptools.S = S
maptools.NS = NS

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")

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

if minetest.setting_getbool("log_mods") then
	minetest.log("action", S("[maptools] loaded."))
end