How to spawn stone?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
RektSalad69
Inserter
Inserter
Posts: 23
Joined: Mon Apr 11, 2016 6:58 pm
Contact:

How to spawn stone?

Post by RektSalad69 »

I'm pretty far in a save and there was almost no stone, now I've already mined all of it, can I spawn in some via console?

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: How to spawn stone?

Post by daniel34 »

You can do it the easy way:

Code: Select all

/c game.local_player.insert{name="stone", count=500}
will give you 500 stone.

The hard way:

Code: Select all

/c game.local_player.surface.create_entity{name="stone", position = game.local_player.position}
/c game.local_player.selected.amount = 1000
The first line will create a stone patch with 50 stone wherever the player stands, the second one will change the amount of ore in that patch to 1000. (Enter the second one while you're highlighting the ore patch with your mouse.)
quick links: log file | graphical issues | wiki

RektSalad69
Inserter
Inserter
Posts: 23
Joined: Mon Apr 11, 2016 6:58 pm
Contact:

Re: How to spawn stone?

Post by RektSalad69 »

daniel34 wrote:You can do it the easy way:

Code: Select all

/c game.local_player.insert{name="stone", count=500}
will give you 500 stone.

The hard way:

Code: Select all

/c game.local_player.surface.create_entity{name="stone", position = game.local_player.position}
/c game.local_player.selected.amount = 1000
The first line will create a stone patch with 50 stone wherever the player stands, the second one will change the amount of ore in that patch to 1000. (Enter the second one while you're highlighting the ore patch with your mouse.)
Thanks a lot, worked like a charm.

Post Reply

Return to “Gameplay Help”