mobs_npc/init.lua

34 lines
613 B
Lua
Raw Normal View History

2016-04-15 15:01:56 +01:00
local path = minetest.get_modpath("mobs_npc")
2016-06-11 10:54:30 +01:00
-- Intllib
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s, a, ...)
if a == nil then
return s
end
a = {a, ...}
return s:gsub("(@?)@(%(?)(%d+)(%)?)",
function(e, o, n, c)
if e == ""then
return a[tonumber(n)] .. (o == "" and c or "")
else
return "@" .. o .. n .. c
end
end)
end
end
mobs.intllib = S
2016-04-15 15:01:56 +01:00
-- NPC
dofile(path .. "/npc.lua") -- TenPlus1
dofile(path .. "/trader.lua")
dofile(path .. "/igor.lua")
2016-04-15 15:01:56 +01:00
2016-12-01 18:43:03 +00:00
dofile(path .. "/lucky_block.lua")
2016-06-11 10:54:30 +01:00
print (S("[MOD] Mobs Redo 'NPCs' loaded"))