From 2e4dce266f70fb1aee47f58b326ab849d623e8ab Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 29 May 2014 19:06:53 -0400 Subject: [PATCH] also redefine moreblocks' empty bookshelf in a similar manner --- homedecor_3d_extras/depends.txt | 2 ++ homedecor_3d_extras/init.lua | 25 ++++++++++++++++++ .../textures/3dbookshelf_fb_empty.png | Bin 0 -> 430 bytes 3 files changed, 27 insertions(+) create mode 100644 homedecor_3d_extras/textures/3dbookshelf_fb_empty.png diff --git a/homedecor_3d_extras/depends.txt b/homedecor_3d_extras/depends.txt index 4ad96d51..2daa1313 100644 --- a/homedecor_3d_extras/depends.txt +++ b/homedecor_3d_extras/depends.txt @@ -1 +1,3 @@ default +moreblocks? + diff --git a/homedecor_3d_extras/init.lua b/homedecor_3d_extras/init.lua index 6c01fda5..a0288564 100644 --- a/homedecor_3d_extras/init.lua +++ b/homedecor_3d_extras/init.lua @@ -55,3 +55,28 @@ minetest.override_item("default:bookshelf", { } } }) + +minetest.override_item("moreblocks:empty_bookshelf", { + drawtype = "nodebox", + tiles = { + "3dbookshelf_top.png", + "3dbookshelf_bottom.png", + "3dbookshelf_sides.png", + "3dbookshelf_sides.png", + "3dbookshelf_fb_empty.png", + "3dbookshelf_fb_empty.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 + } + } +}) diff --git a/homedecor_3d_extras/textures/3dbookshelf_fb_empty.png b/homedecor_3d_extras/textures/3dbookshelf_fb_empty.png new file mode 100644 index 0000000000000000000000000000000000000000..366c72b027e8917ed08be594c4ffc62cb3757726 GIT binary patch literal 430 zcmV;f0a5;mP)+hSER+V#SC^LFgbj7sSEUNe7?62k;f#eFxvb#ibxPNCO=-Efi7` zh-65rwl$5l4sAc0rrOps-tV4!?|09+%vpJJh%x$K0{{Term!s7^W!~SUf&}pb8y@c zsv_Xw`3>938geoR0C3z8cF>0=@!$nQb8oK7AckqtYP>)a9UM2LaXaY8-VD^N&