Factorio

Factorio

View Stats:
Ashrak Aug 23, 2022 @ 8:17pm
Looking for mod that lets you spawn ore patches
I need a mod that can do the following:

- Let me easily spawn a square shaped resource patch
- Let me erase a resource patch
- (Optional): At world gen, it doesn't generate any resource patches

Another idea would be:

Lets you craft a miner that already has a resource patch beneath it, one for each type.

I could not find something like this in the portal.

Thanks!
< >
Showing 1-9 of 9 comments
Fel Aug 23, 2022 @ 8:21pm 
You don't even need a mod for that.

Save your game, load it with the map editor, do whatever you want with ore patches (adding/removing/increasing/decreasing), save and load it normally to continue playing.

SImilarly, you can disable anything from world gen when you are on the screen right before generating the map by unchecking the resource(s).

If you don't already have a map, you can save a bit of time by creating it with the map editor (it works the same way as when creating a normal map).
MechBFP Aug 23, 2022 @ 8:25pm 
The magic wand in this mod will do that https://forums.factorio.com/viewtopic.php?f=97&t=28005
OzHawkeye Aug 23, 2022 @ 10:16pm 
Or this console command:

/c local surface = game.player.surface;
local ore = nil
local size = 3
local density = 8000
for y=-size,size do
for x=-size,size do
a = (((size+1) - math.abs(x))*10)
b = (((size+1) - math.abs(y))*10)
if a < b then
ore = math.random(((a*density)-(a*(density-8))),((a*density)+(a*(density-8))))
end
if b < a then
ore = math.random(((b*density)-(b*(density-8))),((b*density)+(b*(density-8))))
end
surface.create_entity({name="stone", amount=ore, position={game.player.position.x+x, game.player.position.y+y}})
end
end
DCYW Aug 23, 2022 @ 11:32pm 
How about alien ore loot mod instead.
Black Market 2 using ucoins to purchase and sell your raw ores and CleanMap mod to refresh your map except your sector of land.
Last edited by DCYW; Aug 23, 2022 @ 11:34pm
BlueRock Aug 24, 2022 @ 8:35am 
Editor Extensions mod is kept up to date and gives a number of additional tools for editing your map or testing your creations. It is a great tool.
The author of this thread has indicated that this post answers the original topic.
Estelyen Aug 24, 2022 @ 8:14pm 
I use a mod called Sun resources for that.
Hedning Aug 25, 2022 @ 4:40am 
Originally posted by OzHawkeye:
Or this console command:

/c local surface = game.player.surface;
local ore = nil
local size = 3
local density = 8000
for y=-size,size do
for x=-size,size do
a = (((size+1) - math.abs(x))*10)
b = (((size+1) - math.abs(y))*10)
if a < b then
ore = math.random(((a*density)-(a*(density-8))),((a*density)+(a*(density-8))))
end
if b < a then
ore = math.random(((b*density)-(b*(density-8))),((b*density)+(b*(density-8))))
end
surface.create_entity({name="stone", amount=ore, position={game.player.position.x+x, game.player.position.y+y}})
end
end
Console is good, but why the random factor? Not only are you making your miners run out even more unevenly, but also that is really hard to calculate how much ore you are spawning. Take out the random part and make it much simpler:
/c
local type="iron-ore"
local size=10
local density=8000
for y=-size, size do for x=-size, size do
game.player.surface.create_entity({name=type, amount=density, position={game.player.position.x+x, game.player.position.y+y}})
end end
Last edited by Hedning; Aug 25, 2022 @ 4:45am
OzHawkeye Aug 26, 2022 @ 2:22pm 
I like the randomness to make it look (a little) more like a natural deposit.
Ashrak Aug 26, 2022 @ 5:30pm 
Originally posted by Estelyen:
I use a mod called Sun resources for that.
Thankyou! that was I was looking for
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Aug 23, 2022 @ 8:17pm
Posts: 9