[init.lua] Update Description and add inner and outer for stairs

This commit is contained in:
Jat15 2020-12-27 16:34:01 +01:00
parent 52f0b0fabe
commit cdc2195e96
1 changed files with 7 additions and 4 deletions

View File

@ -107,7 +107,7 @@ local function add_ore(modname, description, mineral_name, oredef)
})
if minetest.get_modpath("moreblocks") then
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" },
groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
sounds = default.node_sound_metal_defaults()
@ -118,9 +118,12 @@ local function add_ore(modname, description, mineral_name, oredef)
block_item,
{snappy = 1, bendy = 2, cracky = 1, melty = 2, level= 2},
{ img_base .. "_block.png"},
S("%s Block Stair"):format(S(description)),
S("%s Block Slab"):format(S(description)),
default.node_sound_metal_defaults()
S("@1 Block Stair", S(description)),
S("@1 Block Slab", S(description)),
default.node_sound_metal_defaults(),
false,
S("@1 Block Inner Stair", S(description)),
S("@1 Block Outer Stair", S(description)),
)
end
minetest.register_alias(mineral_name.."_block", block_item)