Page 1 of 1
Add new oil patch
Posted: Fri Sep 15, 2017 11:45 am
by Pascali
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?
Re: Add new oil patch
Posted: Sat Sep 16, 2017 6:41 pm
by AlienX
If you want to create a single oil patch under the players feet, do the following:
Code: Select all
/c game.player.surface.create_entity({name="crude-oil", amount=5000, position={game.player.position.x, game.player.position.y}})
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:
Code: Select all
/c game.print(game.player.selected.amount)
You can then work out what amount values are used normally.
I hope this helps.
Re: Add new oil patch
Posted: Sat Sep 16, 2017 6:58 pm
by Optera
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.
Re: Add new oil patch
Posted: Mon Sep 25, 2017 4:04 pm
by Pascali
perfect, thank you!