From 3db939fca2f3f290a8d153daeb8a209f3b5f8038 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 29 May 2014 18:52:51 -0400 Subject: [PATCH] add 3d extras mod with 3d nodebox-based bookshelf by default, this redefines the default bookshelf. --- homedecor_3d_extras/depends.txt | 1 + homedecor_3d_extras/init.lua | 57 ++++++++++++++++++ .../textures/3dbookshelf_bottom.png | Bin 0 -> 317 bytes .../textures/3dbookshelf_fb.png | Bin 0 -> 523 bytes .../textures/3dbookshelf_sides.png | Bin 0 -> 317 bytes .../textures/3dbookshelf_top.png | Bin 0 -> 317 bytes 6 files changed, 58 insertions(+) create mode 100644 homedecor_3d_extras/depends.txt create mode 100644 homedecor_3d_extras/init.lua create mode 100644 homedecor_3d_extras/textures/3dbookshelf_bottom.png create mode 100644 homedecor_3d_extras/textures/3dbookshelf_fb.png create mode 100644 homedecor_3d_extras/textures/3dbookshelf_sides.png create mode 100644 homedecor_3d_extras/textures/3dbookshelf_top.png diff --git a/homedecor_3d_extras/depends.txt b/homedecor_3d_extras/depends.txt new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/homedecor_3d_extras/depends.txt @@ -0,0 +1 @@ +default diff --git a/homedecor_3d_extras/init.lua b/homedecor_3d_extras/init.lua new file mode 100644 index 00000000..6c01fda5 --- /dev/null +++ b/homedecor_3d_extras/init.lua @@ -0,0 +1,57 @@ +minetest.override_item("default:bookshelf", { + drawtype = "nodebox", + tiles = { + "3dbookshelf_top.png", + "3dbookshelf_bottom.png", + "3dbookshelf_sides.png", + "3dbookshelf_sides.png", + "3dbookshelf_fb.png", + "3dbookshelf_fb.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.1875, 0.5, 0.5, 0.1875}, -- NodeBox1 + {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5}, -- NodeBox2 + {0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}, -- NodeBox3 + {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, -- NodeBox4 + {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, -- NodeBox5 + {-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox6 + {-0.4375, 0.0625, -0.4375, -0.3125, 0.375, -0.125}, -- NodeBox7 + {-0.3125, 0.0625, -0.4375, -0.25, 0.3125, -0.125}, -- NodeBox8 + {-0.25, 0.0625, -0.4375, -0.125, 0.375, -0.125}, -- NodeBox9 + {-0.125, 0.0625, -0.4375, 0, 0.4375, -0.125}, -- NodeBox10 + {0, 0.0625, -0.4375, 0.0625, 0.3125, -0.125}, -- NodeBox11 + {0.0625, 0.0625, -0.4375, 0.125, 0.375, -0.125}, -- NodeBox12 + {0.125, 0.0625, -0.4375, 0.1875, 0.25, -0.125}, -- NodeBox13 + {0.1875, 0.0625, -0.4375, 0.25, 0.3125, -0.125}, -- NodeBox14 + {0.25, 0.0625, -0.4375, 0.3125, 0.25, -0.125}, -- NodeBox15 + {0.3125, 0.0625, -0.4375, 0.4375, 0.375, -0.125}, -- NodeBox16 + {-0.4375, -0.4375, -0.4375, -0.25, -0.125, -0.125}, -- NodeBox17 + {-0.25, -0.4375, -0.4375, -0.125, -0.1875, -0.125}, -- NodeBox18 + {-0.125, -0.4375, -0.4375, -0.0625, -0.125, -0.125}, -- NodeBox19 + {-0.0625, -0.4375, -0.4375, 0.25, -0.1875, -0.125}, -- NodeBox22 + {0.25, -0.4375, -0.4375, 0.375, -0.125, -0.125}, -- NodeBox23 + {0.375, -0.4375, -0.4375, 0.4375, -0.1875, -0.125}, -- NodeBox24 + {0.3125, 0.0625, 0.125, 0.4375, 0.375, 0.4375}, -- NodeBox25 + {0.25, 0.0625, 0.125, 0.3125, 0.3125, 0.4375}, -- NodeBox26 + {0.125, 0.0625, 0.125, 0.25, 0.375, 0.4375}, -- NodeBox27 + {0, 0.0625, 0.125, 0.125, 0.5, 0.4375}, -- NodeBox28 + {-0.0625, 0.0625, 0.125, 0, 0.3125, 0.4375}, -- NodeBox29 + {-0.125, 0.0625, 0.125, -0.0625, 0.375, 0.4375}, -- NodeBox30 + {-0.1875, 0.0625, 0.125, -0.125, 0.25, 0.4375}, -- NodeBox31 + {-0.25, 0.0625, 0.125, -0.1875, 0.3125, 0.4375}, -- NodeBox32 + {-0.3125, 0.0625, 0.125, -0.25, 0.25, 0.4375}, -- NodeBox33 + {-0.4375, 0.0625, 0.125, -0.3125, 0.375, 0.4375}, -- NodeBox34 + {0.25, -0.4375, 0.125, 0.4375, -0.125, 0.4375}, -- NodeBox35 + {0.125, -0.4375, 0.125, 0.25, -0.1875, 0.4375}, -- NodeBox36 + {0.0625, -0.4375, 0.125, 0.125, -0.125, 0.4375}, -- NodeBox37 + {-0.1875, -0.4375, 0.1875, 0.0625, -0.1875, 0.4375}, -- NodeBox38 + {-0.25, -0.4375, 0.125, -0.1875, -0.125, 0.4375}, -- NodeBox39 + {-0.375, -0.4375, 0.125, -0.25, -0.0625, 0.4375}, -- NodeBox40 + {-0.4375, -0.4375, 0.125, -0.375, -0.125, 0.4375}, -- NodeBox41 + } + } +}) diff --git a/homedecor_3d_extras/textures/3dbookshelf_bottom.png b/homedecor_3d_extras/textures/3dbookshelf_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..d1e136d686dff1a90ad92d1d556df29a9896df23 GIT binary patch literal 317 zcmV-D0mA-?P)j zv5JF05Pez2Vz=1z2}l|(4i6zkejrVX{6Vg|?@E~>)0~Df#D5Mx! zjJhGOSaz6s^JX41J8V~9yN@VN0RZ?-inSws*N)E(K70Fo^C zT^j(sTuAy?Wnq~Hp25_Q>J&%;z~y?MCg`y77FAhj36^P4nhUAweAlM2>!y7ooPPfM zA+4m{!CB5X-eR!ESid7AS&sL>sP|-!3t2a<3XkW%;SPNax>RNHz5nbKk}TJWOpH`F zZ4lmcX>yr7B@Y+?(s~D$X|VCNa3PhUb<++`hLPVdZ0+AgN1($T=O*z0Q=@8#Bv3WX P00000NkvXXu0mjf_Roe` literal 0 HcmV?d00001 diff --git a/homedecor_3d_extras/textures/3dbookshelf_fb.png b/homedecor_3d_extras/textures/3dbookshelf_fb.png new file mode 100644 index 0000000000000000000000000000000000000000..0b2205de6fea1e6ed37a9b1934a010e29ff6deba GIT binary patch literal 523 zcmV+m0`&cfP)Yz zaZzMoU|?Wi`1R*60|Nsa3o`>=z!K}Jo!@^@OpyK6`=4Th?8mRZ>xy7xU|^WChm)0! z@!|7t@{(M?fBlyh=Xm<^$Fy<>rVBS8&T0AFR{Vy6fnkFF8)=VLh)Jw$j5SX_L)g;d z9FJs+|C&@^xcQLDKwbWu?6z;R+tliQB3rFi_fvy`fq{X+*CdaDfg!`;Uxvd!1_lPE z3pXEfJ@(>y>;+e9q|9fe%m-obp8J=9fuXJV&5Q#~GY&8@FfcG(zV`)}|88K2oW1pt z#avgKf#E)~=()R}7#J8BWU&O7u^K;PXPPdAW1ue2Km=gHs_xd456IkaUq3=jym0d& z%dICLiY6Yj)D~i3V0iWZ=fmgUq=Y%8#W|3<+AY5r7#L>N+%JeWU^#sL(bnBtASUI- zhchrRSjtB|`mqjf{A#x^yFRosFff#LRZm**h{afq|J>R05IIOpU6d9z=6pBtW2*q? z#@#I^81^t66KG^$V6b6eFjnJd;o|03H#UT5c!lI{5oy^!Z_xe5#mCL@3*`uyo@ z1_p*VPajXoI*~QS3?=$y1eh+|e8@mFxN!3!BRqM-Q#b@b(m7_D2LKSBr6TpK{Ko(Q N002ovPDHLkV1o0a^*sOp literal 0 HcmV?d00001 diff --git a/homedecor_3d_extras/textures/3dbookshelf_sides.png b/homedecor_3d_extras/textures/3dbookshelf_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..d1e136d686dff1a90ad92d1d556df29a9896df23 GIT binary patch literal 317 zcmV-D0mA-?P)j zv5JF05Pez2Vz=1z2}l|(4i6zkejrVX{6Vg|?@E~>)0~Df#D5Mx! zjJhGOSaz6s^JX41J8V~9yN@VN0RZ?-inSws*N)E(K70Fo^C zT^j(sTuAy?Wnq~Hp25_Q>J&%;z~y?MCg`y77FAhj36^P4nhUAweAlM2>!y7ooPPfM zA+4m{!CB5X-eR!ESid7AS&sL>sP|-!3t2a<3XkW%;SPNax>RNHz5nbKk}TJWOpH`F zZ4lmcX>yr7B@Y+?(s~D$X|VCNa3PhUb<++`hLPVdZ0+AgN1($T=O*z0Q=@8#Bv3WX P00000NkvXXu0mjf_Roe` literal 0 HcmV?d00001 diff --git a/homedecor_3d_extras/textures/3dbookshelf_top.png b/homedecor_3d_extras/textures/3dbookshelf_top.png new file mode 100644 index 0000000000000000000000000000000000000000..d1e136d686dff1a90ad92d1d556df29a9896df23 GIT binary patch literal 317 zcmV-D0mA-?P)j zv5JF05Pez2Vz=1z2}l|(4i6zkejrVX{6Vg|?@E~>)0~Df#D5Mx! zjJhGOSaz6s^JX41J8V~9yN@VN0RZ?-inSws*N)E(K70Fo^C zT^j(sTuAy?Wnq~Hp25_Q>J&%;z~y?MCg`y77FAhj36^P4nhUAweAlM2>!y7ooPPfM zA+4m{!CB5X-eR!ESid7AS&sL>sP|-!3t2a<3XkW%;SPNax>RNHz5nbKk}TJWOpH`F zZ4lmcX>yr7B@Y+?(s~D$X|VCNa3PhUb<++`hLPVdZ0+AgN1($T=O*z0Q=@8#Bv3WX P00000NkvXXu0mjf_Roe` literal 0 HcmV?d00001