spawners/spawners_env/init.lua

42 lines
1.1 KiB
Lua
Raw Normal View History

2016-10-09 23:05:30 +03:00
MOD_NAME = minetest.get_current_modname()
2016-10-08 21:54:26 +03:00
-- Main settings
2016-10-09 23:05:30 +03:00
dofile(minetest.get_modpath(MOD_NAME).."/settings.txt")
2016-10-08 21:54:26 +03:00
-- Spawners configurations
2016-10-09 23:05:30 +03:00
dofile(minetest.get_modpath(MOD_NAME).."/config.lua")
2016-10-08 21:54:26 +03:00
-- API
2016-10-09 23:05:30 +03:00
dofile(minetest.get_modpath(MOD_NAME).."/api.lua")
2016-10-08 21:54:26 +03:00
2016-10-13 00:49:57 +03:00
-- Spawners for mobs
dofile(minetest.get_modpath(MOD_NAME).."/spawners_env.lua")
-- Spawners Pyramids - works best with mapgen v6
2016-10-08 21:54:26 +03:00
if SPAWN_PYRAMIDS then
2016-10-09 23:05:30 +03:00
dofile(minetest.get_modpath(MOD_NAME).."/pyramids.lua")
2016-10-08 21:54:26 +03:00
print("[Mod][spawners] Pyramids enabled")
end
2016-10-13 00:49:57 +03:00
-- include mummy mobs redo addon (mob)
if minetest.get_modpath("mobs") then
dofile(minetest.get_modpath(MOD_NAME).."/mob_env_mummy.lua")
dofile(minetest.get_modpath(MOD_NAME).."/nodes_env_additional.lua")
end
2016-10-08 21:54:26 +03:00
-- Add Spawners to dungeons, temples..
if SPAWNERS_GENERATE then
2016-10-09 23:05:30 +03:00
dofile(minetest.get_modpath(MOD_NAME).."/spawners_gen.lua")
2016-10-08 21:54:26 +03:00
print("[Mod][spawners] Spawners generate enabled")
end
-- Add Chests to dungeons, temples..
if CHESTS_GENERATE then
2016-10-09 23:05:30 +03:00
dofile(minetest.get_modpath(MOD_NAME).."/chests_gen.lua")
2016-10-08 21:54:26 +03:00
print("[Mod][spawners] Chests generate enabled")
end
2016-10-13 00:49:57 +03:00
print ("[Mod] Spawners Environmental 0.7 Loaded.")