Code: Select all
/c local s=game.surfaces[1]
local fef=s.find_entities_filtered
local function ce(t) return s.create_entity{name=t[1],position=t[2],force='player'} end
for k,v in next,fef{} do if v.type~='player' then v.destroy() end end
for x=100,600,18 do for y=1,500,18 do ce{'substation',{x,y}}
for xo=-9,8 do
for _,yo in next,{-7,-5,-3,2,4,6} do ce{'inserter',{x+xo,y+yo}} end
for _,yo in next,{-8,-6,-4,-2,1,3,5,7} do ce{'steel-chest',{x+xo,y+yo}} end
end
end end
... edit: so, to finish the thought, going by that it looks like the right way to power down is to shut off the supplies first so all the inserters go idle, then cut the power to go for a deeper sleep. Just as Optera suspected.