]> git.lizzy.rs Git - xdecor.git/commitdiff
Add woodframed glass
authorkilbith <jeanpatrick.guerrero@gmail.com>
Fri, 12 Jun 2015 10:37:35 +0000 (12:37 +0200)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Fri, 12 Jun 2015 10:41:54 +0000 (12:41 +0200)
crafts.lua
nodes.lua
textures/xdecor_framed_glass.png [new file with mode: 0644]
textures/xdecor_framed_glass_detail.png [new file with mode: 0644]

index 63bc901db8d77623f3f60fc06c977a542a9172f3..ce9c58ce78f7bae2b394bd3e2be3fc7c9831f82f 100644 (file)
@@ -123,6 +123,11 @@ minetest.register_craft({ output = "xdecor:workbench", recipe = {
        {"group:wood", "group:wood", "group:wood"},
        {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
        {"group:wood", "group:wood", "group:wood"} } })
+       
+minetest.register_craft({ output = "xdecor:woodframed_glass", recipe = {
+       {"group:stick", "group:stick", "group:stick"},
+       {"group:stick", "default:glass", "group:stick"},
+       {"group:stick", "group:stick", "group:stick"} } })
 
 minetest.register_craft({ output = "xdecor:wood_tile 2", recipe = {
        {"group:wood", "group:wood"},
index 3e25b63ae61b8373a23177548c32137ce9e1ea7f..2490063317abf79ad58421148b94451f1df11d7b 100644 (file)
--- a/nodes.lua
+++ b/nodes.lua
@@ -226,6 +226,11 @@ xdecor.register("tv", {
                "xdecor_television_back.png",
                {name="xdecor_television_front_animated.png",
                animation = {type="vertical_frames", length=80.0}}} })
+               
+xdecor.register("woodframed_glass", {
+       description = "Wood Framed Glass", drawtype = "glasslike_framed_optional", 
+       tiles = {"xdecor_framed_glass.png", "xdecor_framed_glass_detail.png"},
+       groups = {snappy=3}, sounds = default.node_sound_glass_defaults() })
 
 xdecor.register("wood_tile", {
        description = "Wood Tile", tiles = {"xdecor_wood_tile.png"},
diff --git a/textures/xdecor_framed_glass.png b/textures/xdecor_framed_glass.png
new file mode 100644 (file)
index 0000000..c2ce207
Binary files /dev/null and b/textures/xdecor_framed_glass.png differ
diff --git a/textures/xdecor_framed_glass_detail.png b/textures/xdecor_framed_glass_detail.png
new file mode 100644 (file)
index 0000000..341f8fe
Binary files /dev/null and b/textures/xdecor_framed_glass_detail.png differ