1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-18 13:40:20 +02:00

use mesh node for paintings

This commit is contained in:
Vanessa Ezekowitz
2015-05-07 18:45:49 -04:00
parent 05d41327d7
commit 2faa8d7ae3
24 changed files with 123 additions and 15 deletions

View File

@ -679,27 +679,24 @@ for _, i in ipairs(n) do
})
end
local p_cbox = {
type = "fixed",
fixed = {
{ -0.5, -0.5, 0.4375, 0.5, 0.5, 0.5 }
}
}
for i = 1,20 do
homedecor.register("painting_"..i, {
description = "Decorative painting #"..i,
mesh = "homedecor_painting.obj",
tiles = {
"homedecor_painting_edges.png",
"homedecor_painting_edges.png",
"homedecor_painting_edges.png",
"homedecor_painting_edges.png",
"homedecor_painting_back.png",
"default_wood.png",
"homedecor_blank_canvas.png",
"homedecor_painting"..i..".png"
},
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
}
},
selection_box = p_cbox,
walkable = false,
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
})