From 5cf343c0d57f8c98a571557cd070527792c7f945 Mon Sep 17 00:00:00 2001 From: kilbith Date: Sat, 16 Jan 2016 23:59:49 +0100 Subject: [PATCH] Add Iron Light Box --- nodes.lua | 18 +++++++----- recipes.lua | 27 ++++++++++++------ textures/xdecor_crate.png | Bin 206 -> 218 bytes textures/xdecor_iron_lightbox.png | Bin 0 -> 307 bytes ...ightbox.png => xdecor_wooden_lightbox.png} | Bin 5 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 textures/xdecor_iron_lightbox.png rename textures/{xdecor_lightbox.png => xdecor_wooden_lightbox.png} (100%) diff --git a/nodes.lua b/nodes.lua index b62b795..45689a8 100644 --- a/nodes.lua +++ b/nodes.lua @@ -281,13 +281,17 @@ xdecor.register("lantern", { } }) -xdecor.register("lightbox", { - description = "Light Box", - tiles = {"xdecor_lightbox.png"}, - groups = {cracky=3, choppy=3, oddly_breakable_by_hand=2}, - light_source = 13, - sounds = default.node_sound_glass_defaults() -}) +for _, l in pairs({"iron", "wooden"}) do + xdecor.register(l.."_lightbox", { + description = l:gsub("^%l", string.upper).." Light Box", + tiles = {"xdecor_"..l.."_lightbox.png"}, + groups = {cracky=3, choppy=3, oddly_breakable_by_hand=2}, + light_source = 13, + sounds = default.node_sound_glass_defaults() + }) +end + +minetest.register_alias("xdecor:lightbox", "xdecor:wooden_lightbox") xdecor.register("packed_ice", { drawtype = "normal", diff --git a/recipes.lua b/recipes.lua index 2c7e77c..116e23f 100644 --- a/recipes.lua +++ b/recipes.lua @@ -198,6 +198,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:iron_lightbox", + recipe = { + {"xpanes:bar", "default:torch", "xpanes:bar"}, + {"xpanes:bar", "default:glass", "xpanes:bar"}, + {"xpanes:bar", "default:torch", "xpanes:bar"} + } +}) + minetest.register_craft({ output = "xdecor:ivy 4", recipe = { @@ -224,15 +233,6 @@ minetest.register_craft({ } }) -minetest.register_craft({ - output = "xdecor:lightbox", - recipe = { - {"group:stick", "default:torch", "group:stick"}, - {"group:stick", "default:glass", "group:stick"}, - {"group:stick", "default:torch", "group:stick"} - } -}) - minetest.register_craft({ output = "xdecor:mailbox", recipe = { @@ -388,6 +388,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:wooden_lightbox", + recipe = { + {"group:stick", "default:torch", "group:stick"}, + {"group:stick", "default:glass", "group:stick"}, + {"group:stick", "default:torch", "group:stick"} + } +}) + minetest.register_craft({ output = "xdecor:woodglass_door", recipe = { diff --git a/textures/xdecor_crate.png b/textures/xdecor_crate.png index 273dbbe00ae6692276fb0d83e3e990f729ab0250..175e773530c8556121dcc700f9c6e47a45bab71a 100644 GIT binary patch delta 190 zcmV;v073uG0onnOB!3=IOjJc#I2v|JB1$h6R5ci4J{(^>8)QHnZblz#LmzQSAKA`t z9{>OVcS%G+R0!84jj;{GFbo7AT&nL z<8kK+xBW|5T0xjBqrxGBKYc}DNE+nfSQJdo6b(`mAnzWNDmMeLqTt0gR=`3!{`QER s0{l)HQ00FSl9QHly{|ax+*)n(2~#~2jzt})WdHyG07*qoM6N<$f;!Gfn*aa+ delta 178 zcmV;j08Rhe0nP!CB!3l9OjJc#I2vR>97-=0bV(vqH5hnJB4TC2%+-T%lBL zk|8jp^I#}&w@Cs?7NE>Ml}SMq?Q^`y;Z}sO9Xr48e<@DsCM$)60c#3%GJxV9Ac(+M gtydom;YjB712R_>{@QA#T>t<807*qoM6N<$g7Zp4oB#j- diff --git a/textures/xdecor_iron_lightbox.png b/textures/xdecor_iron_lightbox.png new file mode 100644 index 0000000000000000000000000000000000000000..efe91975d8863c1c6fca186bc62e530a8005cdc3 GIT binary patch literal 307 zcmV-30nGl1P)I2|I|_cv^oEK2LH`f|E@3p)L%V4J^#Er|AY$vrzro6 z82`sk|HMoGkuLv)7ysO0|D;3zt~+0jzLWp}0H8@kK~xyi6^;oK!ypU;CF~FgBq3+p z|9`ad&Txz^*#eM6+yR6yXS=%L+xAaA2@usuB=B|%!vbIFtvJ_;MV$w>Aq#AV*N}E- z);!HK^=T>$x?>W0c^P0RSuW{wp;-hd6B#+Cf<&OxGsBXyv#Zmk