Add mesh picture frames

This commit is contained in:
jeanpatrick.guerrero@gmail.com
2015-02-14 12:21:27 +01:00
committed by Vanessa Ezekowitz
parent 7a15ceada5
commit 876e2645ea
7 changed files with 247 additions and 0 deletions

View File

@ -1409,3 +1409,21 @@ homedecor.register("wine_rack", {
sounds = default.node_sound_defaults(),
})
local pframe_cbox = {
type = "fixed",
fixed = { -0.18, -0.5, -0.08, 0.18, -0.08, 0.18 }
}
local n = { 1, 2 }
for _, i in ipairs(n) do
homedecor.register("picture_frame"..i, {
description = S("Picture Frame"),
mesh = "homedecor_picture_frame.obj",
tiles = { "homedecor_picture_frame"..i..".png" },
inventory_image = "homedecor_picture_frame"..i.."_inv.png",
wield_image = "homedecor_picture_frame"..i.."_inv.png",
groups = {snappy = 3},
selection_box = pframe_cbox,
collision_box = pframe_cbox,
})
end