refinements and fixed textures for uruk hai
This commit is contained in:
parent
24cfe39e30
commit
8a1ab7409c
@ -114,15 +114,11 @@ end
|
|||||||
|
|
||||||
-- start spawning mobs
|
-- start spawning mobs
|
||||||
function spawners_mobs.start_spawning(random_pos, how_many, mob_name, mod_prefix, sound_custom)
|
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
|
if not (random_pos or how_many or mob_name) then return end
|
||||||
|
|
||||||
local sound_name
|
local sound_name
|
||||||
-- remove 'spawners_mobs:' from the string
|
-- remove 'spawners_mobs:' from the string
|
||||||
local mob_name = string.sub(mob_name,15)
|
local mob_name = string.sub(mob_name,15)
|
||||||
print(mod_prefix)
|
|
||||||
print(mob_name)
|
|
||||||
|
|
||||||
-- use custom sounds
|
-- use custom sounds
|
||||||
if sound_custom ~= "" then
|
if sound_custom ~= "" then
|
||||||
@ -148,8 +144,6 @@ function spawners_mobs.start_spawning(random_pos, how_many, mob_name, mod_prefix
|
|||||||
|
|
||||||
local obj
|
local obj
|
||||||
|
|
||||||
print(mod_prefix)
|
|
||||||
print(mob_name)
|
|
||||||
minetest.after(1, function()
|
minetest.after(1, function()
|
||||||
obj = minetest.add_entity(random_pos, mod_prefix..":"..mob_name)
|
obj = minetest.add_entity(random_pos, mod_prefix..":"..mob_name)
|
||||||
|
|
||||||
|
@ -90,8 +90,9 @@ MOBS_PROPS = {
|
|||||||
dummy_offset=-0.2,
|
dummy_offset=-0.2,
|
||||||
dummy_mesh="mobs_spider.x",
|
dummy_mesh="mobs_spider.x",
|
||||||
dummy_texture={"mobs_spider.png"},
|
dummy_texture={"mobs_spider.png"},
|
||||||
night_only=false,
|
night_only="disable",
|
||||||
sound_custom=""
|
sound_custom="",
|
||||||
|
env=true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name="stone_monster",
|
name="stone_monster",
|
||||||
@ -100,7 +101,7 @@ MOBS_PROPS = {
|
|||||||
dummy_offset=0.05,
|
dummy_offset=0.05,
|
||||||
dummy_mesh="mobs_stone_monster.b3d",
|
dummy_mesh="mobs_stone_monster.b3d",
|
||||||
dummy_texture={"mobs_stone_monster.png"},
|
dummy_texture={"mobs_stone_monster.png"},
|
||||||
night_only=false,
|
night_only=true,
|
||||||
sound_custom="mobs_stonemonster"
|
sound_custom="mobs_stonemonster"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -186,10 +187,10 @@ MOBS_PROPS = {
|
|||||||
-- include mummy mobs redo addon (spawner)
|
-- include mummy mobs redo addon (spawner)
|
||||||
if minetest.get_modpath("mobs") ~= nil then
|
if minetest.get_modpath("mobs") ~= nil then
|
||||||
-- enable spawner
|
-- enable spawner
|
||||||
table.insert(ENABLED_MODS, "spawners")
|
table.insert(ENABLED_MODS, "spawners_mobs")
|
||||||
|
|
||||||
-- configure spawner
|
-- configure spawner
|
||||||
MOBS_PROPS["spawners"] = {
|
MOBS_PROPS["spawners_mobs"] = {
|
||||||
{
|
{
|
||||||
name="mummy",
|
name="mummy",
|
||||||
egg_name_custom="",
|
egg_name_custom="",
|
||||||
@ -197,8 +198,29 @@ if minetest.get_modpath("mobs") ~= nil then
|
|||||||
dummy_offset=0,
|
dummy_offset=0,
|
||||||
dummy_mesh="spawners_mobs_mummy.b3d",
|
dummy_mesh="spawners_mobs_mummy.b3d",
|
||||||
dummy_texture={"spawners_mobs_mummy.png"},
|
dummy_texture={"spawners_mobs_mummy.png"},
|
||||||
night_only="disable",
|
night_only=true,
|
||||||
sound_custom="spawners_mobs_mummy"
|
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
|
end
|
@ -236,8 +236,8 @@ function spawners_mobs.create(mob_name, mod_prefix, size, offset, mesh, texture,
|
|||||||
"spawners_mobs:"..mod_prefix.."_"..mob_name.."_spawner_waiting"
|
"spawners_mobs:"..mod_prefix.."_"..mob_name.."_spawner_waiting"
|
||||||
},
|
},
|
||||||
neighbors = {"air"},
|
neighbors = {"air"},
|
||||||
interval = 20,
|
interval = 10,
|
||||||
chance = 20,
|
chance = 15,
|
||||||
catch_up = false,
|
catch_up = false,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user