forked from mtcontrib/mobs_monster
added settings to enable/disable monsters.
This commit is contained in:
parent
51d7677e65
commit
7a5d019d8a
33
init.lua
33
init.lua
|
@ -37,18 +37,29 @@ if input then
|
|||
end
|
||||
|
||||
|
||||
-- helper function
|
||||
local function ddoo(mob)
|
||||
|
||||
if minetest.settings:get_bool("mobs_monster." .. mob) == false then
|
||||
print("[Mobs_Monster] " .. mob .. " disabled!")
|
||||
return
|
||||
end
|
||||
|
||||
dofile(path .. mob .. ".lua")
|
||||
end
|
||||
|
||||
-- Monsters
|
||||
dofile(path .. "dirt_monster.lua") -- PilzAdam
|
||||
dofile(path .. "dungeon_master.lua")
|
||||
dofile(path .. "oerkki.lua")
|
||||
dofile(path .. "sand_monster.lua")
|
||||
dofile(path .. "stone_monster.lua")
|
||||
dofile(path .. "tree_monster.lua")
|
||||
dofile(path .. "lava_flan.lua") -- Zeg9
|
||||
dofile(path .. "mese_monster.lua")
|
||||
dofile(path .. "spider.lua") -- AspireMint
|
||||
dofile(path .. "land_guard.lua")
|
||||
dofile(path .. "fire_spirit.lua")
|
||||
ddoo("dirt_monster") -- PilzAdam
|
||||
ddoo("dungeon_master")
|
||||
ddoo("oerkki")
|
||||
ddoo("sand_monster")
|
||||
ddoo("stone_monster")
|
||||
ddoo("tree_monster")
|
||||
ddoo("lava_flan") -- Zeg9
|
||||
ddoo("mese_monster")
|
||||
ddoo("spider") -- AspireMint
|
||||
ddoo("land_guard")
|
||||
ddoo("fire_spirit")
|
||||
|
||||
|
||||
-- Load custom spawning
|
||||
|
|
10
settingtypes.txt
Normal file
10
settingtypes.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
mobs_monster.dirt_monster (Enable Dirt Monster) bool true
|
||||
mobs_monster.dungeon_master (Enable Dungeon Master) bool true
|
||||
mobs_monster.fire_spirit (Enable Fire Spirit) bool true
|
||||
mobs_monster.land_guard (Enable Land Guard) bool true
|
||||
mobs_monster.lava_flan (Enable Lava Flan) bool true
|
||||
mobs_monster.mese_monster (Enable Mese Monster) bool true
|
||||
mobs_monster.oerkki (Enable Oerkki) bool true
|
||||
mobs_monster.spider (Enable Spider) bool true
|
||||
mobs_monster.stone_monster (Enable Stone Monster) bool true
|
||||
mobs_monster.tree_monster (Enable Tree Monster) bool true
|
Loading…
Reference in New Issue
Block a user