hi,
you can do it like this:
/c for y=0,2 do
for x=0,2 do
game.player.surface.create_entity({name="crude-oil", amount=5000, position={game.player.position.x+x*7-7, game.player.position.y+y*7-7}})
end
end
but you get more then 1 oil patch. How can i add one oilpatch? And what is the normal amount of oil? 5000?
Add new oil patch
Re: Add new oil patch
If you want to create a single oil patch under the players feet, do the following:
This will disable achievements though, so keep that in mind.
As for "What is the normal amount of oil" - I am unsure if i'm honest, however you can check the amount that's inside a already existing oil patch by doing the following:
1. Mouse Over the oil patch you want to check
2. Run the following:
You can then work out what amount values are used normally.
I hope this helps.
Code: Select all
/c game.player.surface.create_entity({name="crude-oil", amount=5000, position={game.player.position.x, game.player.position.y}})
As for "What is the normal amount of oil" - I am unsure if i'm honest, however you can check the amount that's inside a already existing oil patch by doing the following:
1. Mouse Over the oil patch you want to check
2. Run the following:
Code: Select all
/c game.print(game.player.selected.amount)
I hope this helps.
Re: Add new oil patch
The mod Mining Tools adds dynamite to generate oil patches as well as ore.
It won't lock you out of achievements and generated resources will stay after removing the mod.
It won't lock you out of achievements and generated resources will stay after removing the mod.
My Mods: mods.factorio.com
Re: Add new oil patch
perfect, thank you!