指令大全
检查虫子进化程度 /c game.player.print(game.evolutionfactor)
忽视夜晚 /c game.alwaysday=true
杀死所有可移动的东西 /c game.killallenemies()
解锁科技树 /c for n,t in pairs(game.player.force.technologies) do t.researched=t.enabled end
极速手工采矿/c game.player.force.manualminingspeedmodifier=1000
极速手工制造 /c game.player.force.manualcraftingspeedmodifier=1000
开启和平模式,已经存在的虫子无效 /c game.peacefulmode = true
快速研究 /c game.player.force.laboratoryspeedmodifier = 1 1表示的是倍数
取消红图勾选建筑 /c for _, entity in ipairs(game.findentities{ {game.player.position.x-20, game.player.position.y-20}, {game.player.position.x+20, game.player.position.y+20}}) do entity.canceldeconstruction(game.player.force) end
破坏自由模式中视野内的岩石 /c for _, entity in ipairs(game.findentitiesfiltered{area={{game.player.position.x-32, game.player.position.y-32},{game.player.position.x+32, game.player.position.y+32}}, name="stone-rock"}) do entity.destroy() end
用print()指令简写代替game.player.print()指令 /c print = function(text) game.player.print(text) end
强行重置地图,重建并探索地图。默认大小64*64 (4096),大多实体会被重置(树、资源、虫群)。 /c game.forces.player.chart({lefttop = {x = -1024, y = -1024}, rightbottom = {x = 1024, y = 1024}})
检查水位 /c game.player.print(game.player.selected.getliquid().amount)
煤矿 /c local surface = game.player.surface; for y=-2,2 do for x=-2,2 do surface.create_entity({name="coal", amount=9999999, position={game.player.position .x+x, game.player.position.y+y}}) end end
铁矿 /c local surface = game.player.surface; for y=-2,2 do for x=-2,2 do surface.create_entity({name="iron-ore", amount=99999999, position={game.player .position.x+x, game.player.position.y+y}}) end end
铜矿 /c local surface = game.player.surface; for y=-2,2 do for x=-2,2 do surface.create_entity({name="copper-ore", amount=99999999, position={game.player .position.x+x, game.player.position.y+y}}) end end
石头 /c local surface = game.player.surface; for y=-2,2 do for x=-2,2 do surface.create_entity({name="stone", amount=99999999, position={game.player.position .x+x, game.player.position.y+y}}) end end
原油 /c local surface = game.player.surface; for y=-9,9 do for x=-2,2 do surface.create_entity({name="crude-oil", amount=99999999, position={game.player .position.x+x, game.player.position.y+y}}) end end
铀矿 /c local surface = game.player.surface; for y=-2,2 do for x=-2,2 do surface.create_entity({name="uranium-ore", amount=99999999, position={game.player .position.x+x, game.player.position.y+y}}) end end
刷东西指令
/c game.player.insert{name="游戏内部物品名",count=数量}
注:name="游戏内部物品名",count="数量"
例子:获得铁片 /c game.player.insert{name="iron-plate",count=100}
游戏内部物品名
advanced-circuit=集成电路
artillery-shell=重炮炮弹
artillery-turret=重炮炮塔
artillery-wagon-cannon=重型火炮
atomic-bomb=原子火箭弹
automation-science-pack=机自研究包 (红瓶)
battery=电池
belt-immunity-equipment=锚定模块
blueprint=蓝图 (建设规划)
blueprint-book=蓝图簿
burner-generator=热能发电机
cannon-shell=标准炮弹
chemical-science-pack=化工研究包 (蓝瓶)
cliff-explosives=悬崖炸药
cluster-grenade=集束手雷
coal=煤矿
combat-shotgun=冲锋霰弹枪
concrete=标准混凝土
copper-cable=铜线
copper-ore=铜矿
copper-plate=铜板
crude-oil-barrel=原油桶
deconstruction-planner=红图 (拆除规划)
defender-capsule=防御无人机胶囊
destroyer-capsule=进攻无人机胶囊
discharge-defense-remote=放电防御瞄准器
distractor-capsule=掩护无人机胶囊
effectivity-module=节能插件 1
effectivity-module-2=节能插件 2
effectivity-module-3=节能插件 3
electric-energy-interface=电力接口
electric-engine-unit=电动机
electronic-circuit=电路板
empty-barrel=空桶
engine-unit=内燃机
explosive-cannon-shell=爆破炮弹
explosive-rocket=爆破火箭弹
explosive-uranium-cannon-shell=爆破贫铀炮弹
explosives=炸药
firearm-magazine=标准弹匣
flamethrower=火焰喷射器
flamethrower-ammo=油料储罐
flamethrower-turret=火焰炮塔
flying-robot-frame=机器人构架
green-wire=绿线缆
grenade=标准手雷
hazard-concrete=标准混凝土 (标识)
heavy-armor=重型护甲
iron-gear-wheel=铁齿轮
iron-ore=铁矿
iron-plate=铁板
iron-stick=铁棒
lab=研究中心
landfill=填海料
laser-turret=激光炮塔
light-armor=轻型护甲
logistic-science-pack=物流研究包 (绿瓶)
low-density-structure=轻质框架
military-science-pack=军备研究包 (灰瓶)
modular-armor=模块装甲
nuclear-fuel=核能燃料
piercing-rounds-magazine=穿甲弹匣
piercing-shotgun-shell=穿甲霰弹
pistol=手枪
plastic-bar=塑料
poison-capsule=剧毒胶囊
power-armor=能量装甲
power-armor-mk2=能量装甲MK2
processing-unit=处理器
production-science-pack=生产研究包 (紫瓶)
productivity-module=产能插件 1
productivity-module-2=产能插件 2
productivity-module-3=产能插件 3
rail=铁轨
raw-fish=鲜鱼
red-wire=红线缆
refined-concrete=钢筋混凝土
refined-hazard-concrete=钢筋混凝土 (标识)
repair-pack=修理包
rocket=标准火箭弹
rocket-control-unit=火箭控制器
rocket-fuel=火箭燃料
rocket-launcher=火箭筒
rocket-part=火箭组件
satellite=卫星
shotgun=霰弹枪
shotgun-shell=标准霰弹
slowdown-capsule=减速胶囊
solar-panel=太阳能板
solid-fuel=固体燃料
space-science-pack=太空研究包 (白瓶)
speed-module=速度插件 1
speed-module-2=速度插件 2
speed-module-3=速度插件 3
steel-plate=钢材
stone=石矿
stone-brick=石砖
stone-path=石砖路
submachine-gun=冲锋枪
sulfur=硫磺
tank-cannon=坦克炮
tank-flamethrower=车载喷火器
tank-machine-gun=车载机枪
upgrade-planner=绿图 (升级规划)
uranium-235=铀-235
uranium-238=铀-238
uranium-cannon-shell=贫铀炮弹
uranium-fuel-cell=铀燃料棒
uranium-ore=铀矿
uranium-rounds-magazine=贫铀弹匣
used-up-uranium-fuel-cell=乏燃料棒
utility-science-pack=效能研究包 (黄瓶)
vehicle-machine-gun=车载机枪
wood=木材
实体
accumulator=蓄电器
acid-splash=酸液
arithmetic-combinator=算术运算器
artillery-turret=重炮炮塔
artillery-wagon=重炮车厢
assembling-machine-1=组装机1型
assembling-machine-2=组装机2型
assembling-machine-3=组装机3型
beacon=插件效果分享塔
boiler=锅炉
burner-generator=热能发电机
burner-inserter=热能机械臂
burner-mining-drill=热能采矿机
car=汽车
cargo-wagon=货运车厢
centrifuge=离心机
chemical-plant=化工厂
cliff=悬崖
coal=煤矿
constant-combinator=常量运算器
construction-robot=建设机器人
copper-cable=铜线
copper-ore=铜矿
crash-site-generator=发电机
cutscene-gun-turret=机枪炮塔
decider-combinator=判断运算器
defender=防御无人机
destroyer=进攻无人机
distractor=掩护无人机
electric-furnace=电炉
electric-mining-drill=电力采矿机
express-loader=极速装卸机
express-splitter=极速分流器
express-transport-belt=极速传送带
express-underground-belt=极速地下传送带
fast-inserter=高速机械臂
fast-loader=高速装卸机
fast-splitter=高速分流器
fast-transport-belt=高速传送带
fast-underground-belt=高速地下传送带
filter-inserter=筛选机械臂
flamethrower-turret=火焰炮塔
fluid-wagon=液罐车厢
gate=闸门
gun-turret=机枪炮塔
heat-exchanger=换热器
heat-interface=热力接口
heat-pipe=热管
infinity-chest=永续箱
infinity-pipe=永续管
inserter=电力机械臂
iron-chest=铁制箱
iron-ore=铁矿
lab=研究中心
land-mine=地雷
laser-turret=激光炮塔
loader=基础装卸机
locomotive=内燃机车
logistic-chest-active-provider=主动供货箱 (紫箱)
logistic-chest-buffer=主动存货箱 (绿箱)
logistic-chest-passive-provider=被动供货箱 (红箱)
logistic-chest-requester=优先集货箱 (蓝箱)
logistic-chest-storage=被动存货箱 (黄箱)
logistic-robot=物流机器人
long-handed-inserter=加长机械臂
nuclear-reactor=核反应堆
offshore-pump=供水泵
oil-refinery=炼油厂
pipe=管道
pipe-to-ground=地下管道
power-switch=电闸
programmable-speaker=程控扬声器
pump=管道泵
pumpjack=抽油机
radar=雷达
rail-chain-signal=联锁铁路信号
rail-signal=常规铁路信号
roboport=机器人指令平台
rocket=火箭弹
rocket-silo=火箭发射井
solar-panel=太阳能板
splitter=基础分流器
stack-filter-inserter=集装筛选机械臂
stack-inserter=集装机械臂
steam-engine=蒸汽机
steam-turbine=汽轮机
steel-chest=钢制箱
steel-furnace=钢炉
stone=石矿
stone-furnace=石炉
stone-wall=墙壁
storage-tank=储液罐
straight-rail=直线铁轨
substation=广域配电站
tank=坦克
train-stop=火车站
transport-belt=基础传送带
underground-belt=基础地下传送带
uranium-ore=铀矿
wooden-chest=木制箱
装备模块
battery-equipment=电池组模块
battery-mk2-equipment=电池组模块MK2
belt-immunity-equipment=锚定模块
discharge-defense-equipment=放电防御模块
energy-shield-equipment=能量盾模块
energy-shield-mk2-equipment=能量盾模块MK2
exoskeleton-equipment=外骨骼模块
fusion-reactor-equipment=聚变堆模块
night-vision-equipment=夜视模块
personal-laser-defense-equipment=激光防御模块
personal-roboport-equipment=机器人指令模块
personal-roboport-mk2-equipment=机器人指令模块MK2
solar-panel-equipment=太阳能模块