Add tabletop-style oil lamp

This commit is contained in:
kilbith
2015-04-28 11:58:47 -04:00
committed by Vanessa Ezekowitz
parent 79559e41a6
commit a574bb8591
5 changed files with 633 additions and 2 deletions

View File

@ -261,7 +261,7 @@ local ol_cbox = {
}
homedecor.register("oil_lamp", {
description = S("Oil lamp"),
description = S("Oil lamp (hurricane)"),
mesh = "homedecor_oil_lamp.obj",
tiles = {
"homedecor_oil_lamp_handles.png",
@ -279,6 +279,18 @@ homedecor.register("oil_lamp", {
sounds = default.node_sound_glass_defaults(),
})
homedecor.register("oil_lamp_tabletop", {
description = S("Oil Lamp (tabletop)"),
mesh = "homedecor_oil_lamp_tabletop.obj",
tiles = {"homedecor_oil_lamp_tabletop.png"},
inventory_image = "homedecor_oil_lamp_tabletop_inv.png",
selection_box = cl_cbox,
collision_box = cl_cbox,
groups = { snappy = 3 },
light_source = LIGHT_MAX-3,
sounds = default.node_sound_glass_defaults(),
})
local gl_cbox = {
type = "fixed",
fixed = { -0.25, -0.5, -0.25, 0.25, 0.45, 0.25 },