Skip to content

Instantly share code, notes, and snippets.

@oconnor663
Created July 7, 2025 04:53
Show Gist options
  • Save oconnor663/28fe7bfa43893a24bf06e1eae43cfc0e to your computer and use it in GitHub Desktop.
Save oconnor663/28fe7bfa43893a24bf06e1eae43cfc0e to your computer and use it in GitHub Desktop.
Factorio starting lua blob
/c
for i = 1, 3 do
game.player.force.technologies["worker-robots-storage-" .. i].researched = true
end
for i = 1, 7 do
game.player.force.technologies["worker-robots-speed-" .. i].researched = true
end
game.player.force.technologies["worker-robots-speed-7"].level = 10
local r=1000
game.player.force.chart(game.player.surface, {{x = -r, y = -r}, {x = r, y = r}})
game.player.insert{name="infinity-chest"}
game.player.insert{name="mech-armor", quality="legendary", count=1}
local armor = game.player.get_inventory(5)[1].grid
local items = {
{"fusion-reactor-equipment", 6},
{"night-vision-equipment", 1},
{"belt-immunity-equipment", 2},
{"personal-roboport-mk2-equipment", 3},
{"exoskeleton-equipment", 6},
{"personal-roboport-mk2-equipment", 9},
{"battery-mk3-equipment", 6},
}
for _, pair in ipairs(items) do
for i = 1, pair[2] do
armor.put{name=pair[1], quality="legendary"}
end
end
game.player.insert{name="construction-robot", quality="legendary", count=500}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment