diff --git a/homedecor_3d_extras/init.lua b/homedecor_3d_extras/init.lua index d42c564..cafbf44 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 0000000..15f233d Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_openframe_back.png differ 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 0000000..453cbf7 Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_openframe_bottom.png differ 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 0000000..7e3c847 Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_openframe_front.png differ 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 0000000..453cbf7 Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_openframe_left.png differ 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 0000000..453cbf7 Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_openframe_right.png differ 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 0000000..44cab27 Binary files /dev/null and b/homedecor_3d_extras/textures/3dbookshelf_openframe_top.png differ