How to spawn stone?
-
- Inserter
- Posts: 23
- Joined: Mon Apr 11, 2016 6:58 pm
- Contact:
How to spawn stone?
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?
Re: How to spawn stone?
You can do it the easy way:
will give you 500 stone.
The hard way:
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.)
Code: Select all
/c game.local_player.insert{name="stone", count=500}
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
-
- Inserter
- Posts: 23
- Joined: Mon Apr 11, 2016 6:58 pm
- Contact:
Re: How to spawn stone?
Thanks a lot, worked like a charm.daniel34 wrote:You can do it the easy way:will give you 500 stone.Code: Select all
/c game.local_player.insert{name="stone", count=500}
The hard way: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.)Code: Select all
/c game.local_player.surface.create_entity{name="stone", position = game.local_player.position} /c game.local_player.selected.amount = 1000