Switch wall lantern to mesh

This commit is contained in:
jp
2015-02-23 13:56:27 +01:00
parent d009cdd649
commit 7b829e874b
4 changed files with 433 additions and 14 deletions

View File

@ -267,21 +267,21 @@ homedecor.register("oil_lamp", {
sounds = default.node_sound_wood_defaults(),
})
local wl_cbox = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.45, 0.25 },
}
homedecor.register("wall_lantern", {
description = S("Wall lantern"),
drawtype = "plantlike",
tiles = { 'homedecor_wall_lantern.png' },
inventory_image = 'homedecor_wall_lantern.png',
sunlight_propagates = true,
selection_box = {
type = "fixed",
fixed = {
{ -0.3, -0.5, -0.3, 0.3, 0.5, 0.3 },
}
},
groups = { snappy = 3 },
light_source = LIGHT_MAX-4,
sounds = default.node_sound_wood_defaults(),
description = S("Wall Lantern"),
mesh = "homedecor_wall_lantern.obj",
tiles = {"homedecor_wall_lantern.png"},
inventory_image = "homedecor_wall_lantern_inv.png",
wield_image = "homedecor_wall_lantern_inv.png",
groups = {snappy=3},
light_source = 11,
selection_box = wl_cbox,
collision_box = wl_cbox,
})
homedecor.register("lattice_lantern_large", {