forked from nalc/homedecor_modpack
add hanging-from-chain ceiling lamp
This commit is contained in:
parent
09c560cfe5
commit
8b924be206
@ -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
|
||||
technic.register_separating_recipe({ input = {"bees:wax 1"}, output = {"homedecor:oil_extract 2","dye:yellow 1"} })
|
||||
end
|
||||
|
@ -442,3 +442,36 @@ for _, color in ipairs(dlamp_colors) do
|
||||
groups = {snappy=3},
|
||||
})
|
||||
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"
|
||||
})
|
||||
|
||||
|
2034
homedecor/models/homedecor_ceiling_lamp.obj
Normal file
2034
homedecor/models/homedecor_ceiling_lamp.obj
Normal file
File diff suppressed because it is too large
Load Diff
BIN
homedecor/textures/homedecor_ceiling_lamp_glass.png
Normal file
BIN
homedecor/textures/homedecor_ceiling_lamp_glass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 592 B |
BIN
homedecor/textures/homedecor_generic_brown_plastic.png
Normal file
BIN
homedecor/textures/homedecor_generic_brown_plastic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 369 B |
Loading…
Reference in New Issue
Block a user