From f512bb7d00d5d4041b4a433653a7771defa75ffb Mon Sep 17 00:00:00 2001 From: kilbith Date: Fri, 12 Jun 2015 12:37:35 +0200 Subject: [PATCH] Add woodframed glass --- crafts.lua | 5 +++++ nodes.lua | 5 +++++ textures/xdecor_framed_glass.png | Bin 0 -> 237 bytes textures/xdecor_framed_glass_detail.png | Bin 0 -> 135 bytes 4 files changed, 10 insertions(+) create mode 100644 textures/xdecor_framed_glass.png create mode 100644 textures/xdecor_framed_glass_detail.png diff --git a/crafts.lua b/crafts.lua index 63bc901..ce9c58c 100644 --- a/crafts.lua +++ b/crafts.lua @@ -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"}, diff --git a/nodes.lua b/nodes.lua index 3e25b63..2490063 100644 --- 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 index 0000000000000000000000000000000000000000..c2ce2073f2bed93974a23eb33f86a3f6e954b30f GIT binary patch literal 237 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!O@L2`E0A88;do*~xd>B%;C z?z}s2;BjM^aioFx&Yky)ebiFTvvnML4kvLeP(Ld|NrY3E|XcgH;4U(M1@JD^xDqH zo;=z<0UJybk1K?i{e9H1H{e%P#fFXhHC*GJCfdGS*3)=FXU~7$z4w-deJNPvE@XQs hgopFug7rNwl^(QD8yJ23TpN44$rjF6*2UngBt+DYO6p literal 0 HcmV?d00001