diff --git a/homedecor/init.lua b/homedecor/init.lua index da3d5c5d..0f2fd253 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 00000000..0abfd6a8 --- /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 00000000..6cebbb08 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 00000000..d866f0c5 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 00000000..e417aa72 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 00000000..4d5a39a7 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 00000000..ef2ca4a4 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 00000000..30f09f82 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 00000000..6bf0d545 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 00000000..d978f5c2 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 00000000..06fa4101 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 00000000..32c9441e 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 00000000..cd8013d1 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 00000000..38d92890 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 00000000..6fd626f1 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 00000000..0d29a858 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 00000000..583cd5dc 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 00000000..3552ccf5 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 00000000..de0a1241 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 00000000..0a237830 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 00000000..9ab797d6 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 00000000..21e23fab 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 00000000..634ff6bc 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 00000000..733b73b7 Binary files /dev/null and b/homedecor/textures/homedecor_painting_edges.png differ