Code: Select all
-- entity
local nuclearConstructionRobot = table.deepcopy(data.raw.item["construction-robot"])
nuclearConstructionRobot.name = "Nuclear-Construction-Robot";
nuclearConstructionRobot.icons = {
{
icon = nuclearConstructionRobot.icon,
tint = {r = 0, g = 1, b = 0, a = 0.3}
},
}
nuclearConstructionRobot.max_health = 300
nuclearConstructionRobot.max_payload_size = 10
nuclearConstructionRobot.speed = 0.1
nuclearConstructionRobot.max_energy = "0.1MJ"
nuclearConstructionRobot.energy_per_tick = "0MJ"
--recipe
local recipe = {
type = "recipe",
name = "Nuclear-Construction-Robot",
result = "Nuclear-Construction-Robot",
enabled = false,
ingredients = {
{"construction-robot", 1},
{"uranium-235", 10}
}
}}
data:extend({nuclearConstructionRobot, recipe})
Thanks in advance