diff --git a/homedecor/crafts.lua b/homedecor/crafts.lua index 41256cd..8cfb0aa 100644 --- a/homedecor/crafts.lua +++ b/homedecor/crafts.lua @@ -3298,6 +3298,24 @@ minetest.register_craft({ }, }) +minetest.register_craft({ + output = "homedecor:stained_glass 8", + recipe = { + {"", "dye:blue", ""}, + {"dye:red", "default:glass", "dye:green"}, + {"", "dye:yellow", ""}, + }, +}) + +minetest.register_craft({ + output = "homedecor:stained_glass", + recipe = { + {"", "dye:blue", ""}, + {"dye:red", "xpanes:pane", "dye:green"}, + {"", "dye:yellow", ""}, + }, +}) + for i in ipairs(homedecor.banister_materials) do local name = homedecor.banister_materials[i][1] diff --git a/homedecor/exterior.lua b/homedecor/exterior.lua index 9bd3d05..fa37ff2 100644 --- a/homedecor/exterior.lua +++ b/homedecor/exterior.lua @@ -197,10 +197,10 @@ homedecor.register("lattice_"..m[1], { type = "fixed", fixed = { {-0.5, -0.5, 0.47, 0.5, 0.5, 0.47}, -- NodeBox1 - {-0.5, 0.422, 0.44, 0.5, 0.5, 0.5}, -- NodeBox2 - {-0.5, -0.5, 0.44, 0.5, -0.422, 0.5}, -- NodeBox3 - {0.422, -0.5, 0.44, 0.5, 0.5, 0.5}, -- NodeBox4 - {-0.5, -0.5, 0.44, -0.422, 0.5, 0.5} -- NodeBox5 + {-0.5, 0.421875, 0.44, 0.5, 0.5, 0.5}, -- NodeBox2 + {-0.5, -0.5, 0.44, 0.5, -0.421875, 0.5}, -- NodeBox3 + {0.421875, -0.5, 0.44, 0.5, 0.5, 0.5}, -- NodeBox4 + {-0.5, -0.5, 0.44, -0.421875, 0.5, 0.5} -- NodeBox5 } }, selection_box = { diff --git a/homedecor/textures/homedecor_stained_glass.png b/homedecor/textures/homedecor_stained_glass.png new file mode 100644 index 0000000..43e86bc Binary files /dev/null and b/homedecor/textures/homedecor_stained_glass.png differ diff --git a/homedecor/window_treatments.lua b/homedecor/window_treatments.lua index 9130b03..9d4e90b 100644 --- a/homedecor/window_treatments.lua +++ b/homedecor/window_treatments.lua @@ -203,3 +203,17 @@ homedecor.register("window_flowerbox", { } } }) + +homedecor.register("stained_glass", { + description = "Stained Glass", + tiles = {"homedecor_stained_glass.png"}, + inventory_image = "homedecor_stained_glass.png", + groups = {snappy=3}, + use_texture_alpha = true, + light_source = 3, + sounds = default.node_sound_glass_defaults(), + node_box = { + type = "fixed", + fixed = { {-0.5, -0.5, 0.46875, 0.5, 0.5, 0.5} } + } +})