mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-22 23:40:18 +01:00
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
|
||||
|
||||
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", {
|
||||
description = "Mummy spawner",
|
||||
paramtype = "light",
|
||||
@ -345,7 +352,8 @@ minetest.register_node("tsm_pyramids:spawner_mummy", {
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
sounds = spawnersounds,
|
||||
})
|
||||
if not minetest.setting_getbool("only_peaceful_mobs") then
|
||||
minetest.register_abm({
|
||||
|
Loading…
Reference in New Issue
Block a user