.raw /entity name for Krastorio 2 > Alien Biomes

Looking for a mod? Have a review on a mod you'd like to share?
Vito_thedog
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sun Apr 26, 2020 8:17 am
Contact:

.raw /entity name for Krastorio 2 > Alien Biomes

Post by Vito_thedog »

Hello, I search for the entity name "imersite ore" and "rare-ore". I have used different names for this. I will use it for this command:
"/c local surface=game.player.surface local ore=nil local size=4 local density=100000000000000 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 if surface.get_tile(game.player.position.x+x, game.player.position.y+y).collides_with("ground-tile") then surface.create_entity({name="immersite-ore", amount=ore, position={game.player.position.x+x, game.player.position.y+y}}) end end end"
Hallo, ich suche die Parameter für "Immersite ore/grotte" und "seltenes erz". Ich habe schon verschiedene Parameter versucht. Ich brauche die parameter für den oben gezeigten Befehl.
orzelek
Smart Inserter
Smart Inserter
Posts: 3922
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: .raw /entity name for Krastorio 2 > Alien Biomes

Post by orzelek »

Vito_thedog wrote: Sat May 09, 2020 4:21 pm Hello, I search for the entity name "imersite ore" and "rare-ore". I have used different names for this. I will use it for this command:
"/c local surface=game.player.surface local ore=nil local size=4 local density=100000000000000 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 if surface.get_tile(game.player.position.x+x, game.player.position.y+y).collides_with("ground-tile") then surface.create_entity({name="immersite-ore", amount=ore, position={game.player.position.x+x, game.player.position.y+y}}) end end end"
Hallo, ich suche die Parameter für "Immersite ore/grotte" und "seltenes erz". Ich habe schon verschiedene Parameter versucht. Ich brauche die parameter für den oben gezeigten Befehl.
You are looking for: "rare-metals" and "imersite"
Also be careful since imersite is meant to exist in singular big deposits with pretty big resource tile size and miner is also big.
Post Reply

Return to “Questions, reviews and ratings”