找到了这个
#
https://wiki.factorio.com/Console#Scripting_and_cheat_commands作弊模式,科技解锁物品无限(角色还在)
/cheat (这句用了多生成了几个星球,反复几次多了几十颗星球)
用这句就不会触发 /c game.player.cheat_mode=true
开挂模式
/c game.player.character=nil
上面这句也把天神的背包清空了,就象换了一个神的
可能还是要如楼上提议的 “ 创造mod ”,这是新的课题~
编辑模式,造矿植树
/editor
总是白天
/c game.player.surface.always_day=true
杀死所有可移动的东西,钻地虫和虫巢还在
/c game.forces["enemy"].kill_all_units()
回到空白状态
/c game.player.force.reset()
清除迷雾几秒
/c game.player.force.chart_all()
友军伤害关闭
/c game.player.force.friendly_fire = false
当前位置,距离出生点的坐标
/c game.player.print(game.player.position.x .. ", " .. game.player.position.y)
传送坐标
/c game.player.teleport({X, Y})
催毁半径250米的所有敌人,包括钻地虫和虫巢(复制一大段)
/c local surface=game.player.surface
local pp = game.player.position
local cnt = 0
for key, entity in pairs(surface.find_entities_filtered({force="enemy", radius=250, position=pp })) do
cnt = cnt+1
entity.destroy()
end
game.player.print(cnt)