mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
30 lines
862 B
Lua
30 lines
862 B
Lua
--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 = {
|
|
{ -32/64, -32/64, 28/64, -30/64, 32/64, 32/64 }, -- left edge
|
|
{ 30/64, -32/64, 28/64, 32/64, 32/64, 32/64 }, -- right edge
|
|
{ -32/64, 30/64, 28/64, 32/64, 32/64, 32/64 }, -- top edge
|
|
{ -32/64, -30/64, 28/64, 32/64, -32/64, 32/64 }, -- bottom edge
|
|
{ -32/64, -32/64, 29/64, 32/64, 32/64, 29/64 } -- the canvas
|
|
}
|
|
},
|
|
groups = {snappy=3},
|
|
})
|
|
end
|