mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2025-01-02 22:38:10 +01:00
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
|
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
|
-- Monsters
|
||||||
dofile(path .. "dirt_monster.lua") -- PilzAdam
|
ddoo("dirt_monster") -- PilzAdam
|
||||||
dofile(path .. "dungeon_master.lua")
|
ddoo("dungeon_master")
|
||||||
dofile(path .. "oerkki.lua")
|
ddoo("oerkki")
|
||||||
dofile(path .. "sand_monster.lua")
|
ddoo("sand_monster")
|
||||||
dofile(path .. "stone_monster.lua")
|
ddoo("stone_monster")
|
||||||
dofile(path .. "tree_monster.lua")
|
ddoo("tree_monster")
|
||||||
dofile(path .. "lava_flan.lua") -- Zeg9
|
ddoo("lava_flan") -- Zeg9
|
||||||
dofile(path .. "mese_monster.lua")
|
ddoo("mese_monster")
|
||||||
dofile(path .. "spider.lua") -- AspireMint
|
ddoo("spider") -- AspireMint
|
||||||
dofile(path .. "land_guard.lua")
|
ddoo("land_guard")
|
||||||
dofile(path .. "fire_spirit.lua")
|
ddoo("fire_spirit")
|
||||||
|
|
||||||
|
|
||||||
-- Load custom spawning
|
-- 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