2016-04-15 16:01:56 +02:00
|
|
|
|
2020-08-25 10:57:09 +02:00
|
|
|
-- Load support for intllib.
|
2020-09-21 11:20:51 +02:00
|
|
|
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/"
|
|
|
|
|
2020-08-25 10:57:09 +02:00
|
|
|
local S = minetest.get_translator and minetest.get_translator("mobs_npc") or
|
2020-09-21 11:20:51 +02:00
|
|
|
dofile(path .. "intllib.lua")
|
|
|
|
|
2016-06-11 11:54:30 +02:00
|
|
|
mobs.intllib = S
|
|
|
|
|
2020-09-21 11:20:51 +02:00
|
|
|
|
|
|
|
-- Check for custom mob spawn file
|
|
|
|
local input = io.open(path .. "spawn.lua", "r")
|
|
|
|
|
|
|
|
if input then
|
|
|
|
mobs.custom_spawn_npc = true
|
|
|
|
input:close()
|
|
|
|
input = nil
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2020-08-25 10:57:09 +02:00
|
|
|
-- NPCs
|
2020-09-21 11:20:51 +02:00
|
|
|
dofile(path .. "npc.lua") -- TenPlus1
|
|
|
|
dofile(path .. "trader.lua")
|
|
|
|
dofile(path .. "igor.lua")
|
|
|
|
|
|
|
|
|
|
|
|
-- Load custom spawning
|
|
|
|
if mobs.custom_spawn_npc then
|
|
|
|
dofile(path .. "spawn.lua")
|
|
|
|
end
|
|
|
|
|
2016-04-15 16:01:56 +02:00
|
|
|
|
2020-08-25 10:57:09 +02:00
|
|
|
-- Lucky Blocks
|
2016-12-01 19:43:03 +01:00
|
|
|
dofile(path .. "/lucky_block.lua")
|
|
|
|
|
2020-09-21 11:20:51 +02:00
|
|
|
|
2019-08-05 10:53:26 +02:00
|
|
|
print (S("[MOD] Mobs Redo NPCs loaded"))
|