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

/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