add hanging-from-chain ceiling lamp

This commit is contained in:
Vanessa Ezekowitz 2015-04-21 21:33:06 -04:00
parent 09c560cfe5
commit 8b924be206
5 changed files with 2084 additions and 0 deletions

View File

@ -3120,6 +3120,23 @@ minetest.register_craft({
}, },
}) })
minetest.register_craft({
output = "homedecor:ceiling_lamp",
recipe = {
{ "", "technic:brass_ingot", ""},
{ "", "homedecor:chainlink_brass", ""},
{ "default:glass", "homedecor:glowlight_small_cube_white", "default:glass"}
},
})
minetest.register_craft({
output = "homedecor:ceiling_lamp",
recipe = {
{ "", "chains:chain_top_brass", ""},
{ "default:glass", "homedecor:glowlight_small_cube_white", "default:glass"}
},
})
if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then if (minetest.get_modpath("technic") and minetest.get_modpath("dye") and minetest.get_modpath("bees")) then
technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} }) technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
end end

View File

@ -442,3 +442,36 @@ for _, color in ipairs(dlamp_colors) do
groups = {snappy=3}, groups = {snappy=3},
}) })
end end
homedecor.register("ceiling_lamp", {
description = S("Ceiling Lamp"),
mesh = "homedecor_ceiling_lamp.obj",
tiles = {
"homedecor_tile_brass2.png",
"homedecor_ceiling_lamp_glass.png",
"homedecor_table_standing_lamp_lightbulb.png^[colorize:#ffffff:200",
"homedecor_generic_brown_plastic.png",
},
light_source = LIGHT_MAX,
groups = {snappy=3},
on_punch = function(pos, node, puncher)
minetest.set_node(pos, {name = "homedecor:ceiling_lamp_off"})
end,
})
homedecor.register("ceiling_lamp_off", {
description = S("Ceiling Lamp (off)"),
mesh = "homedecor_ceiling_lamp.obj",
tiles = {
"homedecor_tile_brass2.png",
"homedecor_ceiling_lamp_glass.png",
"homedecor_table_standing_lamp_lightbulb.png",
"homedecor_generic_brown_plastic.png",
},
groups = {snappy=3},
on_punch = function(pos, node, puncher)
minetest.set_node(pos, {name = "homedecor:ceiling_lamp"})
end,
drop = "homedecor:ceiling_lamp"
})

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B