mirror of
https://github.com/minetest-mods/moreores.git
synced 2025-07-04 09:00:30 +02:00
[init.lua] Update Description and add inner and outer for stairs
This commit is contained in:
11
init.lua
11
init.lua
@ -107,7 +107,7 @@ local function add_ore(modname, description, mineral_name, oredef)
|
|||||||
})
|
})
|
||||||
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("%s Block"):format(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.node_sound_metal_defaults()
|
||||||
@ -118,9 +118,12 @@ local function add_ore(modname, description, mineral_name, oredef)
|
|||||||
block_item,
|
block_item,
|
||||||
{snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
|
{snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
|
||||||
{ img_base .. "_block.png"},
|
{ img_base .. "_block.png"},
|
||||||
S("%s Block Stair"):format(S(description)),
|
S("@1 Block Stair", S(description)),
|
||||||
S("%s Block Slab"):format(S(description)),
|
S("@1 Block Slab", S(description)),
|
||||||
default.node_sound_metal_defaults()
|
default.node_sound_metal_defaults(),
|
||||||
|
false,
|
||||||
|
S("@1 Block Inner Stair", S(description)),
|
||||||
|
S("@1 Block Outer Stair", S(description)),
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
minetest.register_alias(mineral_name.."_block", block_item)
|
minetest.register_alias(mineral_name.."_block", block_item)
|
||||||
|
Reference in New Issue
Block a user