diff --git a/homedecor/init.lua b/homedecor/init.lua index da3d5c5..0f2fd25 100644 --- a/homedecor/init.lua +++ b/homedecor/init.lua @@ -78,6 +78,7 @@ dofile(homedecor.modpath.."/laundry.lua") dofile(homedecor.modpath.."/furnaces.lua") dofile(homedecor.modpath.."/nightstands.lua") dofile(homedecor.modpath.."/clocks.lua") +dofile(homedecor.modpath.."/paintings.lua") dofile(homedecor.modpath.."/crafts.lua") dofile(homedecor.modpath.."/crafts_nomoreblocks.lua") diff --git a/homedecor/paintings.lua b/homedecor/paintings.lua new file mode 100644 index 0000000..0abfd6a --- /dev/null +++ b/homedecor/paintings.lua @@ -0,0 +1,25 @@ +--Various kinds of paintings + +for i = 1,20 do + minetest.register_node("homedecor:painting_"..i, { + description = "Decorative painting", + drawtype = "nodebox", + tiles = { + "homedecor_painting_edges.png", + "homedecor_painting_edges.png", + "homedecor_painting_edges.png", + "homedecor_painting_edges.png", + "homedecor_painting_back.png", + "homedecor_painting"..i..".png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -8/16, -8/16, 7/16, 8/16, 8/16, 8/16 }, + } + }, + groups = {snappy=3}, + }) +end diff --git a/homedecor/textures/homedecor_painting1.png b/homedecor/textures/homedecor_painting1.png new file mode 100644 index 0000000..6cebbb0 Binary files /dev/null and b/homedecor/textures/homedecor_painting1.png differ diff --git a/homedecor/textures/homedecor_painting10.png b/homedecor/textures/homedecor_painting10.png new file mode 100644 index 0000000..d866f0c Binary files /dev/null and b/homedecor/textures/homedecor_painting10.png differ diff --git a/homedecor/textures/homedecor_painting11.png b/homedecor/textures/homedecor_painting11.png new file mode 100644 index 0000000..e417aa7 Binary files /dev/null and b/homedecor/textures/homedecor_painting11.png differ diff --git a/homedecor/textures/homedecor_painting12.png b/homedecor/textures/homedecor_painting12.png new file mode 100644 index 0000000..4d5a39a Binary files /dev/null and b/homedecor/textures/homedecor_painting12.png differ diff --git a/homedecor/textures/homedecor_painting13.png b/homedecor/textures/homedecor_painting13.png new file mode 100644 index 0000000..ef2ca4a Binary files /dev/null and b/homedecor/textures/homedecor_painting13.png differ diff --git a/homedecor/textures/homedecor_painting14.png b/homedecor/textures/homedecor_painting14.png new file mode 100644 index 0000000..30f09f8 Binary files /dev/null and b/homedecor/textures/homedecor_painting14.png differ diff --git a/homedecor/textures/homedecor_painting15.png b/homedecor/textures/homedecor_painting15.png new file mode 100644 index 0000000..6bf0d54 Binary files /dev/null and b/homedecor/textures/homedecor_painting15.png differ diff --git a/homedecor/textures/homedecor_painting16.png b/homedecor/textures/homedecor_painting16.png new file mode 100644 index 0000000..d978f5c Binary files /dev/null and b/homedecor/textures/homedecor_painting16.png differ diff --git a/homedecor/textures/homedecor_painting17.png b/homedecor/textures/homedecor_painting17.png new file mode 100644 index 0000000..06fa410 Binary files /dev/null and b/homedecor/textures/homedecor_painting17.png differ diff --git a/homedecor/textures/homedecor_painting18.png b/homedecor/textures/homedecor_painting18.png new file mode 100644 index 0000000..32c9441 Binary files /dev/null and b/homedecor/textures/homedecor_painting18.png differ diff --git a/homedecor/textures/homedecor_painting19.png b/homedecor/textures/homedecor_painting19.png new file mode 100644 index 0000000..cd8013d Binary files /dev/null and b/homedecor/textures/homedecor_painting19.png differ diff --git a/homedecor/textures/homedecor_painting2.png b/homedecor/textures/homedecor_painting2.png new file mode 100644 index 0000000..38d9289 Binary files /dev/null and b/homedecor/textures/homedecor_painting2.png differ diff --git a/homedecor/textures/homedecor_painting20.png b/homedecor/textures/homedecor_painting20.png new file mode 100644 index 0000000..6fd626f Binary files /dev/null and b/homedecor/textures/homedecor_painting20.png differ diff --git a/homedecor/textures/homedecor_painting3.png b/homedecor/textures/homedecor_painting3.png new file mode 100644 index 0000000..0d29a85 Binary files /dev/null and b/homedecor/textures/homedecor_painting3.png differ diff --git a/homedecor/textures/homedecor_painting4.png b/homedecor/textures/homedecor_painting4.png new file mode 100644 index 0000000..583cd5d Binary files /dev/null and b/homedecor/textures/homedecor_painting4.png differ diff --git a/homedecor/textures/homedecor_painting5.png b/homedecor/textures/homedecor_painting5.png new file mode 100644 index 0000000..3552ccf Binary files /dev/null and b/homedecor/textures/homedecor_painting5.png differ diff --git a/homedecor/textures/homedecor_painting6.png b/homedecor/textures/homedecor_painting6.png new file mode 100644 index 0000000..de0a124 Binary files /dev/null and b/homedecor/textures/homedecor_painting6.png differ diff --git a/homedecor/textures/homedecor_painting7.png b/homedecor/textures/homedecor_painting7.png new file mode 100644 index 0000000..0a23783 Binary files /dev/null and b/homedecor/textures/homedecor_painting7.png differ diff --git a/homedecor/textures/homedecor_painting8.png b/homedecor/textures/homedecor_painting8.png new file mode 100644 index 0000000..9ab797d Binary files /dev/null and b/homedecor/textures/homedecor_painting8.png differ diff --git a/homedecor/textures/homedecor_painting9.png b/homedecor/textures/homedecor_painting9.png new file mode 100644 index 0000000..21e23fa Binary files /dev/null and b/homedecor/textures/homedecor_painting9.png differ diff --git a/homedecor/textures/homedecor_painting_back.png b/homedecor/textures/homedecor_painting_back.png new file mode 100644 index 0000000..634ff6b Binary files /dev/null and b/homedecor/textures/homedecor_painting_back.png differ diff --git a/homedecor/textures/homedecor_painting_edges.png b/homedecor/textures/homedecor_painting_edges.png new file mode 100644 index 0000000..733b73b Binary files /dev/null and b/homedecor/textures/homedecor_painting_edges.png differ