Factorio

Factorio

View Stats:
Samer Sultan Mar 14, 2016 @ 7:48pm
Possible to generate water?
I know for example the following command geneates oil

/c local surface = game.local_player.surface; for y=-2,2 do for x=-2,2 do surface.create_entity({name="crude-oil", amount=2500000, position={game.local_player.position.x+x, game.local_player.position.y+y}}) end end

Is there a similar script I can use to generate water?
< >
Showing 1-5 of 5 comments
ConductorSavy TTV Mar 14, 2016 @ 8:37pm 
You're looking to generate something that works as a resource like Oil and ores. The only liquid patch in the game currently is the oil. If you want water, just place a pump on water and pipe it over.
Capt.Cliff™ Mar 15, 2016 @ 6:49am 
Among many other unique things, the mod 'bobs plates' enables a pump to be placed anywhere and produce water - for realisms sake, from underground springs. It also allows the filling and emptying of other barreled liquids not available standardly. Way to go Bob!
Last edited by Capt.Cliff™; Mar 15, 2016 @ 6:49am
daniel0674 Mar 15, 2016 @ 2:59pm 
/c local waterTiles = {} for y=4,8 do for x=-5,5 do table.insert(waterTiles, {name="water", position={game.local_player.position.x+x, game.local_player.position.y+y}}) end game.local_player.surface.set_tiles(waterTiles) end

will create a small lake below you
Samer Sultan Mar 15, 2016 @ 3:40pm 
Originally posted by daniel0674:
/c local waterTiles = {} for y=4,8 do for x=-5,5 do table.insert(waterTiles, {name="water", position={game.local_player.position.x+x, game.local_player.position.y+y}}) end game.local_player.surface.set_tiles(waterTiles) end

will create a small lake below you

That worked like a charm!
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Mar 14, 2016 @ 7:48pm
Posts: 5