diff --git a/homedecor/misc_nodes.lua b/homedecor/misc_nodes.lua index 0a810d91..7675db75 100644 --- a/homedecor/misc_nodes.lua +++ b/homedecor/misc_nodes.lua @@ -388,4 +388,38 @@ minetest.register_node("homedecor:chimney", { sounds = default.node_sound_stone_defaults() }) +minetest.register_node("homedecor:fishtank", { + drawtype = "nodebox", + description = "Fishtank", + tiles = { + "homedecor_fishtank_top.png", + "homedecor_fishtank_bottom.png", + "homedecor_fishtank_right.png", + "homedecor_fishtank_left.png", + "homedecor_fishtank_back.png", + "homedecor_fishtank_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.375, 0.5, -0.4375, 0.375}, + {-0.4375, -0.4375, -0.3125, 0.4375, 0.1875, 0.3125}, + {-0.4375, 0.1875, -0.1875, 0.4375, 0.25, 0.1875}, + {-0.1875, 0.0625, 0.0625, 0.1875, 0.25, 0.375}, + { 0.125, -0.5, 0.25, 0.1875, 0.1875, 0.375}, + {-0.375, 0.25, -0.125, 0.375, 0.3125, 0.125}, + } + }, + use_texture_alpha = true, + selection_box = { + type = "fixed", + fixed = { -0.5, -0.5, -0.375, 0.5, 0.3125, 0.375 } + }, + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + diff --git a/homedecor/textures/homedecor_fishtank_back.png b/homedecor/textures/homedecor_fishtank_back.png new file mode 100644 index 00000000..d88a58cc Binary files /dev/null and b/homedecor/textures/homedecor_fishtank_back.png differ diff --git a/homedecor/textures/homedecor_fishtank_bottom.png b/homedecor/textures/homedecor_fishtank_bottom.png new file mode 100644 index 00000000..1fc0bbae Binary files /dev/null and b/homedecor/textures/homedecor_fishtank_bottom.png differ diff --git a/homedecor/textures/homedecor_fishtank_front.png b/homedecor/textures/homedecor_fishtank_front.png new file mode 100644 index 00000000..b995bea8 Binary files /dev/null and b/homedecor/textures/homedecor_fishtank_front.png differ diff --git a/homedecor/textures/homedecor_fishtank_left.png b/homedecor/textures/homedecor_fishtank_left.png new file mode 100644 index 00000000..4df2408d Binary files /dev/null and b/homedecor/textures/homedecor_fishtank_left.png differ diff --git a/homedecor/textures/homedecor_fishtank_right.png b/homedecor/textures/homedecor_fishtank_right.png new file mode 100644 index 00000000..2e31f15f Binary files /dev/null and b/homedecor/textures/homedecor_fishtank_right.png differ diff --git a/homedecor/textures/homedecor_fishtank_top.png b/homedecor/textures/homedecor_fishtank_top.png new file mode 100644 index 00000000..e26d032f Binary files /dev/null and b/homedecor/textures/homedecor_fishtank_top.png differ