diff --git a/crafts.lua b/crafts.lua index b330242..1465a8b 100644 --- a/crafts.lua +++ b/crafts.lua @@ -240,13 +240,6 @@ minetest.register_craft({ } }) -minetest.register_craft({ - output = "xdecor:moonbrick", - recipe = { - {"default:brick", "default:stone"} - } -}) - minetest.register_craft({ output = "xdecor:multishelf", recipe = { diff --git a/nodes.lua b/nodes.lua index c424e85..905e9e9 100644 --- a/nodes.lua +++ b/nodes.lua @@ -435,13 +435,23 @@ xdecor.register("plant_pot", { sounds = default.node_sound_stone_defaults() }) -xdecor.register("moonbrick", { - drawtype = "normal", - description = "Moon Brick", - tiles = {"xdecor_moonbrick.png"}, - groups = {cracky=2}, - sounds = default.node_sound_stone_defaults(), + +for _, b in pairs({{"cactus", "cactus"}, {"moon", "stone"}}) do + xdecor.register(b[1].."brick", { + drawtype = "normal", + description = b[1]:gsub("^%l", string.upper).." Brick", + tiles = {"xdecor_"..b[1].."brick.png"}, + groups = {cracky=2}, + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_craft({ + output = "xdecor:"..b[1].."brick", + recipe = { + {"default:brick", "default:"..b[2]} + } }) +end xdecor.register("multishelf", { description = "Multi Shelf", diff --git a/textures/xdecor_cactusbrick.png b/textures/xdecor_cactusbrick.png new file mode 100644 index 0000000..e6ce702 Binary files /dev/null and b/textures/xdecor_cactusbrick.png differ diff --git a/worktable.lua b/worktable.lua index d65cc79..fc84a7b 100644 --- a/worktable.lua +++ b/worktable.lua @@ -13,7 +13,7 @@ local nodes = { -- Nodes allowed to be cut. "default:glass", "default:obsidian_glass", "xdecor:coalstone_tile", "xdecor:desertstone_tile", "xdecor:stone_rune", "xdecor:stone_tile", - "xdecor:hard_clay", "xdecor:packed_ice", "xdecor:moonbrick", + "xdecor:cactusbrick", "xdecor:hard_clay", "xdecor:packed_ice", "xdecor:moonbrick", "xdecor:woodframed_glass", "xdecor:wood_tile", "oresplus:emerald_block", "oresplus:glowstone",