Update Mobs redo and add mobs_mc, modified
This commit is contained in:
parent
8619545f48
commit
8a5fc728ad
275 changed files with 88778 additions and 19881 deletions
|
@ -1,34 +1,16 @@
|
|||
local init = os.clock()
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/api.lua")
|
||||
local path = minetest.get_modpath("mobs")
|
||||
|
||||
-- Items
|
||||
dofile(minetest.get_modpath("mobs").."/item.lua")
|
||||
-- Mob API
|
||||
dofile(path .. "/api.lua")
|
||||
|
||||
-- Mouton
|
||||
dofile(minetest.get_modpath("mobs").."/sheep.lua")
|
||||
-- Mob Items
|
||||
dofile(path .. "/crafts.lua")
|
||||
|
||||
-- Zombie
|
||||
dofile(minetest.get_modpath("mobs").."/zombie.lua")
|
||||
-- Mob Spawner
|
||||
dofile(path .. "/spawner.lua")
|
||||
|
||||
-- Slime
|
||||
dofile(minetest.get_modpath("mobs").."/slime.lua")
|
||||
|
||||
-- Creeper
|
||||
dofile(minetest.get_modpath("mobs").."/creeper.lua")
|
||||
|
||||
-- Spider
|
||||
dofile(minetest.get_modpath("mobs").."/spider.lua")
|
||||
|
||||
if minetest.setting_getbool("spawn_friendly_mobs") ~= false then -- “If not defined or set to true then”
|
||||
mobs:register_spawn("mobs:sheep", "Sheep", {"default:dirt_with_grass"},16, 8, 2, 250, 100)
|
||||
end
|
||||
if minetest.setting_getbool("spawn_hostile_mobs") ~= false then -- “If not defined or set to true then”
|
||||
mobs:register_spawn("mobs:slime", "Slime", { "default:dirt_with_grass"}, 20, 1, 11, 80, 0)
|
||||
mobs:register_spawn("mobs:zombie", "Zombie", {"default:stone", "default:dirt", "default:dirt_with_grass", "default:sand"}, 1, -1, 7, 80, 0)
|
||||
mobs:register_spawn("mobs:spider", "Spider", {"default:stone", "default:dirt", "default:dirt_with_grass", "default:sand"}, 1, -1, 7, 40, 0)
|
||||
end
|
||||
|
||||
local time_to_load= os.clock() - init
|
||||
print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load))
|
||||
-- Lucky Blocks
|
||||
dofile(path .. "/lucky_block.lua")
|
||||
|
||||
print ("[MOD] Mobs Redo loaded")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue