got a new code idea i will test this after work
local DLL = require("prototypes.globals")
-- Check if AAI Industrial mod is present
if mods["aai-industries"] then
-- Modify Large Lamp Recipe for AAI
if data.raw["recipe"][DLL.name] then
data.raw["recipe"][DLL.name].category = "basic-crafting" -- Ensure it matches AAI crafting machines
data.raw["recipe"][DLL.name].ingredients = {
{ type = "item", name = "copper-plate", amount = 6 },
{ type = "item", name = "glass", amount = 2 }, -- AAI material
{ type = "item", name = "electronic-circuit", amount = 2 },
{ type = "item", name = "stone-tablet", amount = 6 } -- AAI material
}
data.raw["recipe"][DLL.name].enabled = false -- Require research if needed
end
-- Modify Copper Lamp Recipe for AAI
if data.raw["recipe"][DLL.copper_name] then
data.raw["recipe"][DLL.copper_name].category = "basic-crafting"
data.raw["recipe"][DLL.copper_name].ingredients = {
{ type = "item", name = "copper-plate", amount = 6 },
{ type = "item", name = "glass", amount = 2 },
{ type = "item", name = "stone-tablet", amount = 6 }
}
data.raw["recipe"][DLL.copper_name].enabled = false
end
-- Modify Electric Copper Lamp Recipe for AAI
if data.raw["recipe"][DLL.electric_copper_name] then
data.raw["recipe"][DLL.electric_copper_name].category = "basic-crafting"
data.raw["recipe"][DLL.electric_copper_name].ingredients = {
{ type = "item", name = "copper-plate", amount = 8 },
{ type = "item", name = "glass", amount = 4 },
{ type = "item", name = "stone-tablet", amount = 8 },
{ type = "item", name = "electronic-circuit", amount = 4 }
}
data.raw["recipe"][DLL.electric_copper_name].enabled = false
end
end