PyuTestMobs_Path = minetest.get_modpath("pyutest_mobs") PyuTestMobs = {} PyuTestMobs.ENTITY_BLOOD_AMOUNT = 6 PyuTestMobs.HUMAN_LIKE_CBOX = {-0.25, -1, -0.25, 0.25, 1, 0.25} mobs.fallback_node = "pyutest_core:dirt_block" dofile(PyuTestMobs_Path.."/basic.lua") -- Humans, Monsters, Mimics, Fireflies and future basic mobs dofile(PyuTestMobs_Path.."/snowman.lua") -- Snowman dofile(PyuTestMobs_Path.."/wind_warrior.lua") -- Wind Warrior local mapgen = minetest.get_mapgen_params().mgname or "???" if mapgen ~= "flat" and mapgen ~= "singlenode" then mobs:spawn({ name = "pyutest_mobs:monster", nodes = {"group:ground"}, interval = 6, chance = 4, active_object_count = 3, min_light = 0, max_light = 8, y_max = PyuTestCore_WorldTop, y_min = PyuTestCore_SurfaceBottom }) mobs:spawn({ name = "pyutest_mobs:monster", nodes = {"group:ground"}, interval = 2, chance = 2, active_object_count = 6, min_light = 0, max_light = 8, y_max = PyuTestCore_DeepOceanMin - 1, y_min = PyuTestCore_WorldBottom }) mobs:spawn({ name = "pyutest_mobs:human", nodes = {"group:ground"}, interval = 3, chance = 4, active_object_count = 3, min_light = 9, max_light = 15, min_height = PyuTestCore_SurfaceBottom, day_toggle = true, }) mobs:spawn({ name = "pyutest_mobs:mimic", nodes = {"group:ground"}, interval = 3, chance = 18, active_object_count = 2, min_light = 0, max_light = 15, day_toggle = true, }) mobs:spawn({ name = "pyutest_mobs:firefly", nodes = {"group:ground", "air"}, interval = 3, chance = 3, active_object_count = 4, min_light = 0, max_light = 9, day_toggle = false, }) end