Please help! How to Spawn Silicon Ore? (Quartz)

Place to get help with not working mods / modding interface.
Crazymike44
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Aug 21, 2017 9:24 pm
Contact:

Please help! How to Spawn Silicon Ore? (Quartz)

Post by Crazymike44 »

Hi all, So I've been playing and spawning any ore I want in certain spots. Could someone help me out with the spawn silicon ore?
I've spawn just about every ore I've wanted so far with this... but silicon just wont work for me? any help?
P.S. I also wanna spawn Lead ore/Galena ore if anyone knows
P.P.S. I'm using bob's mod :D

/c local surface = game.player.surface;
local ore = nil
local size = 5
local density = 10
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
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Please help! How to Spawn Silicon Ore? (Quartz)

Post by darkfrei »

Did you get any error?
Arckont
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Aug 14, 2017 6:51 am
Contact:

Re: Please help! How to Spawn Silicon Ore? (Quartz)

Post by Arckont »

I think that if you are using this command you'll be taken as a cheater by the game and achievements will be disabled, i am right?
Crazymike44
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Aug 21, 2017 9:24 pm
Contact:

Re: Please help! How to Spawn Silicon Ore? (Quartz)

Post by Crazymike44 »

I figured it out. Had to change the ore to "quartz" lower case Q. Then it worked!

And yes using this will shut off achievements. I don't mind that, its not like its REAL Xbox Achievements! ;)
Post Reply

Return to “Modding help”