diff --git a/moreores/init.lua b/moreores/init.lua index 73cf0ea..d901623 100644 --- a/moreores/init.lua +++ b/moreores/init.lua @@ -105,6 +105,12 @@ local function add_ore(modname, description, mineral_name, oredef) groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level = 2}, sounds = default_metal_sounds, }) + stairsplus:register_all("moreblocks",mineral_name.."_block", block_item, { + description = S("@1 Block", S(description)), + tiles = {img_base .. "_block.png"}, + groups = {snappy = 1, bendy = 2, cracky = 1, melty = 2, level = 2}, + sounds = default_metal_sounds, + }) minetest.register_alias(mineral_name.."_block", block_item) if oredef.makes.ingot then minetest.register_craft( { diff --git a/moreores/mod.conf b/moreores/mod.conf index 341e834..3e31dc6 100644 --- a/moreores/mod.conf +++ b/moreores/mod.conf @@ -1,5 +1,5 @@ name = moreores description = Adds new ore types. -depends = default +depends = default, moreblocks optional_depends = carts,farming,frame,mg,toolranks min_minetest_version = 5.0.0 diff --git a/xdecor/mod.conf b/xdecor/mod.conf index 62a4a4d..de0cbe2 100644 --- a/xdecor/mod.conf +++ b/xdecor/mod.conf @@ -1,5 +1,5 @@ name = xdecor description = A decoration mod meant to be simple and well-featured. -depends = default, bucket, doors, farming, stairs, xpanes +depends = default, bucket, doors, farming, stairs, xpanes, moreblocks optional_depends = fire, oresplus, moreblocks, mesecons min_minetest_version = 5.1.0 diff --git a/xdecor/src/nodes.lua b/xdecor/src/nodes.lua index f4dd20c..854f4c5 100644 --- a/xdecor/src/nodes.lua +++ b/xdecor/src/nodes.lua @@ -542,6 +542,12 @@ local function register_hard_node(name, desc, def) groups = def.groups or {cracky = 1}, sounds = def.sounds or default.node_sound_stone_defaults() }) + stairsplus:register_all("moreblocks",name,"xdecor:"..name, { + description = desc, + tiles = {"xdecor_" .. name .. ".png"}, + groups = def.groups or {cracky = 1}, + sounds = def.sounds or default.node_sound_stone_defaults() + }) end register_hard_node("cactusbrick", S("Cactus Brick"))