From 4d9520cf01b0af201dfcf9104a9b3e4abec452d5 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 30 May 2014 00:01:48 -0400 Subject: [PATCH] finish adding "open frame" bookshelf node def --- homedecor_3d_extras/init.lua | 46 +++++++++++++++--- .../textures/3dbookshelf_openframe_back.png | Bin 0 -> 610 bytes .../textures/3dbookshelf_openframe_bottom.png | Bin 0 -> 309 bytes .../textures/3dbookshelf_openframe_front.png | Bin 0 -> 457 bytes .../textures/3dbookshelf_openframe_left.png | Bin 0 -> 309 bytes .../textures/3dbookshelf_openframe_right.png | Bin 0 -> 309 bytes .../textures/3dbookshelf_openframe_top.png | Bin 0 -> 548 bytes 7 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 homedecor_3d_extras/textures/3dbookshelf_openframe_back.png create mode 100644 homedecor_3d_extras/textures/3dbookshelf_openframe_bottom.png create mode 100644 homedecor_3d_extras/textures/3dbookshelf_openframe_front.png create mode 100644 homedecor_3d_extras/textures/3dbookshelf_openframe_left.png create mode 100644 homedecor_3d_extras/textures/3dbookshelf_openframe_right.png create mode 100644 homedecor_3d_extras/textures/3dbookshelf_openframe_top.png diff --git a/homedecor_3d_extras/init.lua b/homedecor_3d_extras/init.lua index d42c5649..cafbf440 100644 --- a/homedecor_3d_extras/init.lua +++ b/homedecor_3d_extras/init.lua @@ -71,16 +71,48 @@ minetest.register_node(":homedecor:openframe_bookshelf", { groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3}, sounds = default.node_sound_wood_defaults(), tiles = { - "3dbookshelf_top.png", - "3dbookshelf_bottom.png", - "3dbookshelf_sides.png", - "3dbookshelf_sides.png", - "3dbookshelf_fb.png", - "3dbookshelf_fb.png" + "3dbookshelf_openframe_top.png", + "3dbookshelf_openframe_bottom.png", + "3dbookshelf_openframe_right.png", + "3dbookshelf_openframe_left.png", + "3dbookshelf_openframe_back.png", + "3dbookshelf_openframe_front.png" + }, paramtype = "light", paramtype2 = "facedir", - + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 } + }, + node_box = { + type = "fixed", + fixed = { + {-0.4375, -0.5, 0, -0.375, 0.5, 0.5}, + {0.375, -0.5, 0, 0.4375, 0.5, 0.5}, + {-0.5, -0.5, 0, 0.5, -0.4375, 0.5}, + {-0.5, 0, 0, 0.5, 0.0625, 0.5}, + {-0.375, 0.0625, 0.176, -0.25, 0.5, 0.5}, + {-0.25, 0.0625, 0.253, -0.1875, 0.4375, 0.5}, + {-0.1875, 0.0625, 0.227, -0.125, 0.5, 0.5}, + {-0.125, 0.0625, 0.176, 0, 0.4375, 0.5}, + {0, 0.0625, 0.232, 0.0625, 0.375, 0.5}, + {0.0625, 0.0625, 0.130, 0.1875, 0.5, 0.5}, + {0.1875, 0.0625, 0.217, 0.25, 0.4375, 0.5}, + {0.25, 0.0625, 0.166, 0.3125, 0.5, 0.5}, + {0.3125, 0.0625, 0.242, 0.375, 0.4375, 0.5}, + {-0.375, -0.4375, 0.191, -0.3125, -0.0625, 0.5}, + {-0.3125, -0.4375, 0.191, -0.1875, -0.125, 0.5}, + {-0.1875, -0.4375, 0.227, -0.125, -0.0625, 0.5}, + {-0.125, -0.4375, 0.0737, 0, -0.0625, 0.5}, + {0, -0.4375, 0.145, 0.0625, -0.125, 0.5}, + {0.0625, -0.4375, 0.212, 0.125, -0.1875, 0.5}, + {0.125, -0.4375, 0.207, 0.1875, -0.125, 0.5}, + {0.1875, -0.4375, 0.176, 0.25, -0.125, 0.5}, + {0.25, -0.4375, 0.258, 0.3125, -0.1875, 0.5}, + {0.3125, -0.4375, 0.130, 0.375, -0.0625, 0.5} + } + } }) if minetest.get_modpath("moreblocks") then diff --git a/homedecor_3d_extras/textures/3dbookshelf_openframe_back.png b/homedecor_3d_extras/textures/3dbookshelf_openframe_back.png new file mode 100644 index 0000000000000000000000000000000000000000..15f233d6daff4e5c3c238f6a419e4d27c5360790 GIT binary patch literal 610 zcmV-o0-gPdP)0pMjIog9D1}U zr9`N;2)LDuF^n^evG03v92X`QFu~SnYpqI^a~1&o13(BPjGS}M0%HtgLXH6j8?d=ml``q>KF&E8LQqPTQd(;v1n1m27lvV)rtRa4mrlXo z;FQ2oK~KsJW^6HVRExX!36ebq_8xKDz4UEm+c=)bW-hEkaGXTK!%3ATvE&${o z%pinHFNUv=zOC$3I*)b6u^b$qOOodH_OHI)?8Z7!02t}dnLrGT&01>_LdC~R7-11) zc79hlXM_+&sh{zi`wRe(rcI1J02Bm)b1sS^t&I?Zb5^g%ob!fkeBY|JW&Qf?M^{&u z)+P)?0Epw5QW^xp7-Ni8N&|q$y-#0$9vIhXG#F!2$|#Dgv0)fG=d#(X@B2MHCkZ9i w+Lm$Xb%707*qoM6N<$f)XAOl>h($ literal 0 HcmV?d00001 diff --git a/homedecor_3d_extras/textures/3dbookshelf_openframe_bottom.png b/homedecor_3d_extras/textures/3dbookshelf_openframe_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..453cbf7bd19fe3ef57ed1798b034f3d0218f366e GIT binary patch literal 309 zcmV-50m}Y~P)j zI}U#Ku>v| zqUtDP(q%H-i!dqwius`A+8Qp1AY^g$8 literal 0 HcmV?d00001 diff --git a/homedecor_3d_extras/textures/3dbookshelf_openframe_front.png b/homedecor_3d_extras/textures/3dbookshelf_openframe_front.png new file mode 100644 index 0000000000000000000000000000000000000000..7e3c8471aaa9ad18d9426b92b83022aa98534e86 GIT binary patch literal 457 zcmV;)0XF`LP)j zO-lk%6g`R!*vO0&hLR~+O;n~e(MFh75)_F$NpV-Jz;(M&zo2Ho^2o zMfOECK`25q2t`@6xH5ha)>++m?mPFsd(X2hMLB=K&y+6!To>3ZBhP-U0059>MgQ>J33Owt`L~;i4Z^Q9a+5n&>-ifIS7|z3R9sp`y z2Ve`2YKeDI;O!S%bRo>gHnvZzg0Vrrp5N2+dz9#Urdh4~nXKOJ!ZC;GND?yGem zP_A%WswdmZ)h2@1Srt&P7U&N}%-9NGAr@*XMsG0Vo6`dTdF>T|B^~X>U-+nenX!#S zX=pTbdDik(HUMbwA6v?RpS9#HG z0O%d^*L(nQc&@o5$t6huR8>_~6##h*z&E{ofB8VWv6|x-6{V;szmDMT?rB)7a`f1G zOWN}jfa9x&W*`0o%kJu2{h7+NvwS^CpMvlMsa1-M4~Am300000NkvXXu0mjfuL;Wq literal 0 HcmV?d00001 diff --git a/homedecor_3d_extras/textures/3dbookshelf_openframe_left.png b/homedecor_3d_extras/textures/3dbookshelf_openframe_left.png new file mode 100644 index 0000000000000000000000000000000000000000..453cbf7bd19fe3ef57ed1798b034f3d0218f366e GIT binary patch literal 309 zcmV-50m}Y~P)j zI}U#Ku>v| zqUtDP(q%H-i!dqwius`A+8Qp1AY^g$8 literal 0 HcmV?d00001 diff --git a/homedecor_3d_extras/textures/3dbookshelf_openframe_right.png b/homedecor_3d_extras/textures/3dbookshelf_openframe_right.png new file mode 100644 index 0000000000000000000000000000000000000000..453cbf7bd19fe3ef57ed1798b034f3d0218f366e GIT binary patch literal 309 zcmV-50m}Y~P)j zI}U#Ku>v| zqUtDP(q%H-i!dqwius`A+8Qp1AY^g$8 literal 0 HcmV?d00001 diff --git a/homedecor_3d_extras/textures/3dbookshelf_openframe_top.png b/homedecor_3d_extras/textures/3dbookshelf_openframe_top.png new file mode 100644 index 0000000000000000000000000000000000000000..44cab275de07fdaabff6320f2bc44c81134fd927 GIT binary patch literal 548 zcmV+<0^9wGP)0005&Nkl2C<9#%OYAuc;vrkA@rs zL8T!=^92)?rk>v;{NhTwJn{QXALZwrAMgA8Ui2O&7Cm2ew6j9|V(t^Gs!Cj~R*4lw zA+FVG#Iab6xY1}32Lb`&Uav(=ORQ;{^!-k!BkciR?RJ~kFbrw`OsG2h1bP4h&h!A!nXc>7jB<`d zBDQ1rb@+I`p77$i=e@KvCwk+-Dj`A;aHI!#&YEn#=h>}PDq=RSi}^SjjoRLfkLP{T z_l4O0imxr1`vM~5{s{e~X5Mayi^iV21ad`@@A$mf!<5TqF;BBGnyEC?wqr z@jVqk8}zM9`4sW`@&fT=E<5-W;Psxl6gOKvu^ltLksN-6oT&Kgwe%!7eof5x7#{2N zcUQ8`ZHMe`i8HRxCw{xD+b81f;{)PUIy)K>;+0OFjaP)c{BIRERJ+q1yazVdW~GCg zjq1M%^q+m@h4TOeoLUFI%R1kOxS`Mk5ctc5ESb>o1Rwwb2tWV=5P$##AOHafKmY;| mfB*y_009U<00IygFM&@B&65uabV*780000