How to spawn stone?
Posted: Sun Apr 17, 2016 7:40 pm
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?
Code: Select all
/c game.local_player.insert{name="stone", count=500}
Code: Select all
/c game.local_player.surface.create_entity{name="stone", position = game.local_player.position}
/c game.local_player.selected.amount = 1000
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