mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-25 08:20:19 +02:00
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:
@ -1207,21 +1207,30 @@ minetest.register_craft({
|
||||
|
||||
-- wood-lattice lamps
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:lattice_lantern_large 2",
|
||||
recipe = {
|
||||
{ "dye:black", "dye:yellow", "dye:black" },
|
||||
{ "group:stick", "building_blocks:woodglass", "group:stick" },
|
||||
{ "group:stick", "homedecor:power_crystal", "group:stick" }
|
||||
},
|
||||
})
|
||||
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",
|
||||
recipe = {
|
||||
{ "dye:black", "dye:yellow", "dye:black" },
|
||||
{ "group:stick", "building_blocks:woodglass", "group:stick" },
|
||||
{ "group:stick", "homedecor:power_crystal", "group:stick" }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:lattice_lantern_small 8",
|
||||
recipe = {
|
||||
minetest.register_craft( {
|
||||
output = "homedecor:lattice_lantern_small 8",
|
||||
recipe = {
|
||||
{ "homedecor:lattice_lantern_large" },
|
||||
},
|
||||
})
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
-- glowlights
|
||||
|
||||
|
Reference in New Issue
Block a user