diff --git a/spawners_mobs/api.lua b/spawners_mobs/api.lua index a2b9912..77631e1 100644 --- a/spawners_mobs/api.lua +++ b/spawners_mobs/api.lua @@ -114,15 +114,11 @@ end -- start spawning mobs function spawners_mobs.start_spawning(random_pos, how_many, mob_name, mod_prefix, sound_custom) - print(mod_prefix) - print(mob_name) if not (random_pos or how_many or mob_name) then return end local sound_name -- remove 'spawners_mobs:' from the string local mob_name = string.sub(mob_name,15) - print(mod_prefix) - print(mob_name) -- use custom sounds if sound_custom ~= "" then @@ -148,8 +144,6 @@ function spawners_mobs.start_spawning(random_pos, how_many, mob_name, mod_prefix local obj - print(mod_prefix) - print(mob_name) minetest.after(1, function() obj = minetest.add_entity(random_pos, mod_prefix..":"..mob_name) diff --git a/spawners_mobs/config.example.lua b/spawners_mobs/config.example.lua index 65acce7..7708a60 100644 --- a/spawners_mobs/config.example.lua +++ b/spawners_mobs/config.example.lua @@ -90,8 +90,9 @@ MOBS_PROPS = { dummy_offset=-0.2, dummy_mesh="mobs_spider.x", dummy_texture={"mobs_spider.png"}, - night_only=false, - sound_custom="" + night_only="disable", + sound_custom="", + env=true }, { name="stone_monster", @@ -100,7 +101,7 @@ MOBS_PROPS = { dummy_offset=0.05, dummy_mesh="mobs_stone_monster.b3d", dummy_texture={"mobs_stone_monster.png"}, - night_only=false, + night_only=true, sound_custom="mobs_stonemonster" }, { @@ -186,10 +187,10 @@ MOBS_PROPS = { -- include mummy mobs redo addon (spawner) if minetest.get_modpath("mobs") ~= nil then -- enable spawner - table.insert(ENABLED_MODS, "spawners") + table.insert(ENABLED_MODS, "spawners_mobs") -- configure spawner - MOBS_PROPS["spawners"] = { + MOBS_PROPS["spawners_mobs"] = { { name="mummy", egg_name_custom="", @@ -197,8 +198,29 @@ if minetest.get_modpath("mobs") ~= nil then dummy_offset=0, dummy_mesh="spawners_mobs_mummy.b3d", dummy_texture={"spawners_mobs_mummy.png"}, - night_only="disable", + night_only=true, sound_custom="spawners_mobs_mummy" + }, + { + name="bunny_evil", + egg_name_custom="", + dummy_size={x=1,y=1}, + dummy_offset=0.2, + dummy_mesh="spawners_mobs_evil_bunny.b3d", + dummy_texture={"spawners_mobs_evil_bunny.png"}, + night_only=true, + sound_custom="spawners_mobs_bunny" + }, + { + name="uruk_hai", + egg_name_custom="", + dummy_size={x=0.5,y=0.5}, + dummy_offset=0, + dummy_mesh="spawners_mobs_character.b3d", + dummy_texture={"spawners_mobs_uruk_hai.png", "spawners_mobs_trans.png","spawners_mobs_galvornsword.png", "spawners_mobs_trans.png"}, + night_only="disable", + sound_custom="spawners_mobs_barbarian_yell2", + env=true } } end \ No newline at end of file diff --git a/spawners_mobs/spawners_mobs.lua b/spawners_mobs/spawners_mobs.lua index e64cc5f..64fe034 100644 --- a/spawners_mobs/spawners_mobs.lua +++ b/spawners_mobs/spawners_mobs.lua @@ -236,8 +236,8 @@ function spawners_mobs.create(mob_name, mod_prefix, size, offset, mesh, texture, "spawners_mobs:"..mod_prefix.."_"..mob_name.."_spawner_waiting" }, neighbors = {"air"}, - interval = 20, - chance = 20, + interval = 10, + chance = 15, catch_up = false, action = function(pos, node, active_object_count, active_object_count_wider) diff --git a/spawners_mobs/textures/spawners_mobs_uruk_hai.png b/spawners_mobs/textures/spawners_mobs_uruk_hai.png index e4704b4..35f08b1 100644 Binary files a/spawners_mobs/textures/spawners_mobs_uruk_hai.png and b/spawners_mobs/textures/spawners_mobs_uruk_hai.png differ diff --git a/spawners_mobs/textures/spawners_mobs_uruk_hai_1.png b/spawners_mobs/textures/spawners_mobs_uruk_hai_1.png index 0527ee0..5a8f71a 100644 Binary files a/spawners_mobs/textures/spawners_mobs_uruk_hai_1.png and b/spawners_mobs/textures/spawners_mobs_uruk_hai_1.png differ diff --git a/spawners_mobs/textures/spawners_mobs_uruk_hai_2.png b/spawners_mobs/textures/spawners_mobs_uruk_hai_2.png index ef0af44..89b5b07 100644 Binary files a/spawners_mobs/textures/spawners_mobs_uruk_hai_2.png and b/spawners_mobs/textures/spawners_mobs_uruk_hai_2.png differ diff --git a/spawners_mobs/textures/spawners_mobs_uruk_hai_3.png b/spawners_mobs/textures/spawners_mobs_uruk_hai_3.png index a8860b1..39bc544 100644 Binary files a/spawners_mobs/textures/spawners_mobs_uruk_hai_3.png and b/spawners_mobs/textures/spawners_mobs_uruk_hai_3.png differ