diff --git a/homedecor_3d_extras/depends.txt b/homedecor_3d_extras/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /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 0000000..6c01fda --- /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 0000000..d1e136d Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_bottom.png differ diff --git a/homedecor_3d_extras/textures/3dbookshelf_fb.png b/homedecor_3d_extras/textures/3dbookshelf_fb.png new file mode 100644 index 0000000..0b2205d Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_fb.png differ diff --git a/homedecor_3d_extras/textures/3dbookshelf_sides.png b/homedecor_3d_extras/textures/3dbookshelf_sides.png new file mode 100644 index 0000000..d1e136d Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_sides.png differ diff --git a/homedecor_3d_extras/textures/3dbookshelf_top.png b/homedecor_3d_extras/textures/3dbookshelf_top.png new file mode 100644 index 0000000..d1e136d Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_top.png differ