Skip to content

Instantly share code, notes, and snippets.

@ProjectSky
Last active March 18, 2017 06:43
Show Gist options
  • Save ProjectSky/12ffa0c424397e3ba7a8b9b27739e899 to your computer and use it in GitHub Desktop.
Save ProjectSky/12ffa0c424397e3ba7a8b9b27739e899 to your computer and use it in GitHub Desktop.
Factorio Debug Command
--手动挖矿加速
/c game.player.force.manual_mining_speed_modifier = 2
--手动制造物品加速
/c game.player.force.manual_crafting_speed_modifier = 2
--研究加速
/c game.player.force.laboratory_speed_modifier = 2
--地上产出OO矿
/c local surface = game.player.surface; for y=-2,2 do for x=-2,2 do surface.create_entity({name="iron-ore", amount=25000000, position={game.player .position.x+x, game.player.position.y+y}}) end end
local 石头 = "stone"
local 铜矿 = "copper-ore"
local 铁矿 = "iron-ore"
local 煤矿 = "coal"
local 石油 = "crude-oil"
--获得物品
/c game.player.insert{name="iron-plate", count=10000}
local url = "https://wiki.factorio.com/index.php?title=Items"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment