1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-06 18:10:22 +02:00
Files
server-nalc/mods/nalc/init.lua
sys4-fr e32c9b72b8 Minercantile items are now craftable
Barter shop and bancomatic are craftable by anyone but to administrate the barter shop the player must have the shop privilege. (and ask to get it)
Anyway a non priviligied user can use his barter shop, but it will be limited to sell/bye objects from the General group that is administrated by players with the shop privilege.
2018-01-07 18:28:53 +01:00

52 lines
1.1 KiB
Lua

local modpath = minetest.get_modpath(minetest.get_current_modname())
-- Custom craftings
dofile(modpath.."/crafting.lua")
-- Custom craftitems
dofile(modpath.."/craftitems.lua")
-- Custom mapgen ore generation
dofile(modpath.."/mapgen.lua")
-- Custom nodes
dofile(modpath.."/nodes.lua")
-- Custom tools
dofile(modpath.."/tools.lua")
local mods =
{
"witchcraft", "cotton", "technic",
"beds", "boats", "bucket",
"nyancat", "moreores", "moreblocks",
"maptools", "doors", "flowers",
"carts", "nether", "mobs_animal",
"minercantile"
}
for _,mod in ipairs(mods) do
if minetest.get_modpath(mod) then
dofile(modpath.."/"..mod..".lua")
end
end
-- 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(
3,
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
minetest.log("action", "[MOD] NALC loaded")