2017-11-25 23:12:26 +01:00
|
|
|
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
2017-03-12 18:13:21 +01:00
|
|
|
|
2017-11-25 23:12:26 +01:00
|
|
|
-- Custom craftings
|
|
|
|
dofile(modpath.."/crafting.lua")
|
2017-03-12 18:13:21 +01:00
|
|
|
|
2017-11-25 23:12:26 +01:00
|
|
|
-- Custom craftitems
|
|
|
|
dofile(modpath.."/craftitems.lua")
|
2017-03-12 18:13:21 +01:00
|
|
|
|
2017-11-25 23:12:26 +01:00
|
|
|
-- Custom mapgen ore generation
|
|
|
|
dofile(modpath.."/mapgen.lua")
|
2017-03-16 15:15:38 +01:00
|
|
|
|
2017-11-25 23:12:26 +01:00
|
|
|
-- Custom nodes
|
|
|
|
dofile(modpath.."/nodes.lua")
|
2017-03-20 21:43:17 +01:00
|
|
|
|
2017-11-25 23:12:26 +01:00
|
|
|
-- Custom tools
|
|
|
|
dofile(modpath.."/tools.lua")
|
2017-03-20 22:28:22 +01:00
|
|
|
|
2017-12-02 18:36:06 +01:00
|
|
|
local mods =
|
|
|
|
{
|
|
|
|
"witchcraft", "cotton", "technic",
|
|
|
|
"beds", "boats", "bucket",
|
|
|
|
"nyancat", "moreores", "moreblocks",
|
2018-01-13 15:59:22 +01:00
|
|
|
"bonemeal", "maptools", "doors",
|
|
|
|
"flowers", "carts", "nether",
|
|
|
|
"mobs_animal", "minercantile"
|
2017-12-02 18:36:06 +01:00
|
|
|
}
|
2017-03-20 22:28:22 +01:00
|
|
|
|
2017-11-25 23:12:26 +01:00
|
|
|
for _,mod in ipairs(mods) do
|
|
|
|
if minetest.get_modpath(mod) then
|
|
|
|
dofile(modpath.."/"..mod..".lua")
|
2017-03-16 15:15:38 +01:00
|
|
|
end
|
2017-03-12 18:13:21 +01:00
|
|
|
end
|
2017-04-03 19:02:51 +02:00
|
|
|
|
2017-11-26 08:30:26 +01:00
|
|
|
|
|
|
|
-- Hide quests HUD by default
|
|
|
|
if minetest.get_modpath("quests") and quests then
|
|
|
|
minetest.register_on_joinplayer(
|
|
|
|
function(player)
|
|
|
|
if not player then return end
|
|
|
|
|
|
|
|
minetest.after(
|
2017-12-02 14:58:14 +01:00
|
|
|
3,
|
2017-11-26 08:30:26 +01:00
|
|
|
function(playername)
|
|
|
|
quests.hud[playername].autohide = false
|
|
|
|
quests.hide_hud(playername)
|
|
|
|
minetest.log("action", "Quest HUD hidden for player "..playername)
|
|
|
|
end, player:get_player_name())
|
|
|
|
end)
|
|
|
|
end
|
2017-12-16 22:21:52 +01:00
|
|
|
|
|
|
|
minetest.log("action", "[MOD] NALC loaded")
|