mirror of
https://github.com/minetest-mods/moreores.git
synced 2025-07-03 00:20:33 +02:00
[init.lua] Use variable default_metal_sounds
This commit is contained in:
6
init.lua
6
init.lua
@ -103,14 +103,14 @@ local function add_ore(modname, description, mineral_name, oredef)
|
|||||||
description = S("@1 Block", S(description)),
|
description = S("@1 Block", S(description)),
|
||||||
tiles = {img_base .. "_block.png"},
|
tiles = {img_base .. "_block.png"},
|
||||||
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level = 2},
|
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level = 2},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
sounds = default_metal_sounds,
|
||||||
})
|
})
|
||||||
if minetest.get_modpath("moreblocks") then
|
if minetest.get_modpath("moreblocks") then
|
||||||
stairsplus:register_all("moreores", mineral_name.."_block", block_item, {
|
stairsplus:register_all("moreores", mineral_name.."_block", block_item, {
|
||||||
description = S("@1 Block", S(description)),
|
description = S("@1 Block", S(description)),
|
||||||
tiles = { img_base .. "_block.png" },
|
tiles = { img_base .. "_block.png" },
|
||||||
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
|
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
|
||||||
sounds = default.node_sound_metal_defaults()
|
sounds = default_metal_sounds
|
||||||
})
|
})
|
||||||
elseif minetest.get_modpath("stairs") then
|
elseif minetest.get_modpath("stairs") then
|
||||||
stairs.register_stair_and_slab(
|
stairs.register_stair_and_slab(
|
||||||
@ -120,7 +120,7 @@ local function add_ore(modname, description, mineral_name, oredef)
|
|||||||
{ img_base .. "_block.png"},
|
{ img_base .. "_block.png"},
|
||||||
S("@1 Stair", S(description)),
|
S("@1 Stair", S(description)),
|
||||||
S("@1 Slab", S(description)),
|
S("@1 Slab", S(description)),
|
||||||
default.node_sound_metal_defaults(),
|
default_metal_sounds,
|
||||||
false,
|
false,
|
||||||
S("Inner @1 Stair", S(description)),
|
S("Inner @1 Stair", S(description)),
|
||||||
S("Outer @1 Stair", S(description))
|
S("Outer @1 Stair", S(description))
|
||||||
|
Reference in New Issue
Block a user