From e0fe854c5da4f9baf5834d97cef199e561b10e2a Mon Sep 17 00:00:00 2001 From: kilbith Date: Wed, 13 May 2015 00:03:02 +0200 Subject: [PATCH] Add stained glass --- homedecor/crafts.lua | 18 ++++++++++++++++++ homedecor/exterior.lua | 8 ++++---- .../textures/homedecor_stained_glass.png | Bin 0 -> 1515 bytes homedecor/window_treatments.lua | 14 ++++++++++++++ 4 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 homedecor/textures/homedecor_stained_glass.png 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 0000000000000000000000000000000000000000..43e86bc0fbc56c78e49545e46217624ad097242e GIT binary patch literal 1515 zcmd6mhgT8^0LCdtrkSUujb~;r)6<;i<>_S^ZZVZ}Yv#%w;$B=siCh7uXyztIZd5>2 z5F9AeffE!5X7!Y!tjjA)&-4C^`@Q#lzdzu6Umn=iK~es!JOBVtbaJ$HKd|P1k&`-T z+xmP40C0#8zUgVl%gf8nVUJ~I3aVxq@xu#Pte~oDuB2qHWV*DJSHT-Ap5!8t>__lX zE_@^^YA7XXKv-X2HjJ4@p(YWC5$c2Cei#P^W2K~|HpdZ3fwi+!PYWj}5S-Lx7W>}F zgL@x*yq!r?ty+dy;g#cPz+=hO3IE_Wi2&C6xcmj{_JN+PwFJWq=5 zCq+|86rb+laDq^PC-S=dx?0Crr85`|hmA^XybEoPAdo^^ac=f#OEWVwD=RBYOG^t2 z3r9ysJ3BiY8yg@HXliQe;^Ja#YzzW{+}zv@3=DL2b=}?F!C>&^%a?U@bhNazD$WqE z94wue?C$DO`F~-*1EB{1Nd4|)3-mPS#!kI~s+*jY5&0cYdNy3Ct(!zghDRLGA6#Dc z<~n5Adyju{p{T*l=kvAWyLr+w`vp=rhhvX{YLb}mLLogPw0uZt?JO^ z-R_|yU#OKK5hnFJ=H@V?(;KKL7ul}C;%&IHSbx?3HuIA%Jr(ZYN;G~_P28t!;E~Q9Tf~RJ^xX;u$h3|YbaX}hjJl>jIw^km{mRaP@IF)pmd2i4V zGEi2!+<7zTSk2kx_Ps*}NS_{6C3W)*|22fnxr$Hu91W;NGiPO%Wv4117kOCd$&h2K zff)m59MbrPCqoblWp^r2<>bwtZWDCDU4;=PXyB<+s&Zk;4+m6U@|G;=Onady3AO|` z>r%E6WBV#yzi5ft&llo*!XSllU b{w~*O+!^bNx%FZ0;MxEuJ6Btrbuj#2h{PXy literal 0 HcmV?d00001 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} } + } +})