mobs_npc/init.lua

38 lines
682 B
Lua
Raw Normal View History

2016-04-15 16:01:56 +02:00
2020-08-25 10:57:09 +02:00
-- Load support for intllib.
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
dofile(path .. "intllib.lua")
2016-06-11 11:54:30 +02:00
mobs.intllib = S
-- 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
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")
2019-08-05 10:53:26 +02:00
print (S("[MOD] Mobs Redo NPCs loaded"))