From cdc2195e9659a465b7eb65f0e525091330ffc9d7 Mon Sep 17 00:00:00 2001 From: Jat15 Date: Sun, 27 Dec 2020 16:34:01 +0100 Subject: [PATCH] [init.lua] Update Description and add inner and outer for stairs --- init.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index a3fdc4e..9e96882 100644 --- a/init.lua +++ b/init.lua @@ -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)