forked from mtcontrib/homedecor_modpack
if darkage is also installed,
don't register large homedecor lattice lamp or the recipes to create it or to split it into 8 small lamps. instead, add an alias to darkage:lamp and a recipe to split that.
This commit is contained in:
parent
69e87419ea
commit
6a3c009276
@ -1207,21 +1207,30 @@ minetest.register_craft({
|
|||||||
|
|
||||||
-- wood-lattice lamps
|
-- wood-lattice lamps
|
||||||
|
|
||||||
minetest.register_craft( {
|
if minetest.get_modpath("darkage") then
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "homedecor:lattice_lantern_small 8",
|
||||||
|
recipe = {
|
||||||
|
{ "darkage:lamp" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
else
|
||||||
|
minetest.register_craft( {
|
||||||
output = "homedecor:lattice_lantern_large 2",
|
output = "homedecor:lattice_lantern_large 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:black", "dye:yellow", "dye:black" },
|
{ "dye:black", "dye:yellow", "dye:black" },
|
||||||
{ "group:stick", "building_blocks:woodglass", "group:stick" },
|
{ "group:stick", "building_blocks:woodglass", "group:stick" },
|
||||||
{ "group:stick", "homedecor:power_crystal", "group:stick" }
|
{ "group:stick", "homedecor:power_crystal", "group:stick" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:lattice_lantern_small 8",
|
output = "homedecor:lattice_lantern_small 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "homedecor:lattice_lantern_large" },
|
{ "homedecor:lattice_lantern_large" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- glowlights
|
-- glowlights
|
||||||
|
|
||||||
|
@ -14,3 +14,4 @@ flowers?
|
|||||||
3d_armor?
|
3d_armor?
|
||||||
skinsdb?
|
skinsdb?
|
||||||
mesecons?
|
mesecons?
|
||||||
|
darkage?
|
||||||
|
@ -360,13 +360,17 @@ homedecor.register("ceiling_lantern", {
|
|||||||
walkable = false
|
walkable = false
|
||||||
})
|
})
|
||||||
|
|
||||||
homedecor.register("lattice_lantern_large", {
|
if minetest.get_modpath("darkage") then
|
||||||
|
minetest.register_alias("homedecor:lattice_lantern_large", "darkage:lamp")
|
||||||
|
else
|
||||||
|
homedecor.register("lattice_lantern_large", {
|
||||||
description = S("Lattice lantern (large)"),
|
description = S("Lattice lantern (large)"),
|
||||||
tiles = { 'homedecor_lattice_lantern_large.png' },
|
tiles = { 'homedecor_lattice_lantern_large.png' },
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
light_source = default.LIGHT_MAX,
|
light_source = default.LIGHT_MAX,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
homedecor.register("lattice_lantern_small", {
|
homedecor.register("lattice_lantern_small", {
|
||||||
description = S("Lattice lantern (small)"),
|
description = S("Lattice lantern (small)"),
|
||||||
|
Loading…
Reference in New Issue
Block a user