Add sounds to mummy spawner
This commit is contained in:
parent
b5ef3d0e7f
commit
368f822ebf
10
mummy.lua
10
mummy.lua
@ -325,6 +325,13 @@ function pyramids.spawn_mummy (pos, number)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local spawnersounds
|
||||||
|
if default.node_sound_metal_defaults then
|
||||||
|
spawnersounds = default.node_sound_metal_defaults()
|
||||||
|
else
|
||||||
|
spawnersounds = default.node_sound_stone_defaults()
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node("tsm_pyramids:spawner_mummy", {
|
minetest.register_node("tsm_pyramids:spawner_mummy", {
|
||||||
description = "Mummy spawner",
|
description = "Mummy spawner",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -345,7 +352,8 @@ minetest.register_node("tsm_pyramids:spawner_mummy", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end,
|
||||||
|
sounds = spawnersounds,
|
||||||
})
|
})
|
||||||
if not minetest.setting_getbool("only_peaceful_mobs") then
|
if not minetest.setting_getbool("only_peaceful_mobs") then
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
|
Loading…
Reference in New Issue
Block a user