Here's an example code:
Code: Select all
game.surfaces['nauvis'].create_entity{name="item-on-ground",position={0,0},stack={name="basic-bullet-magazine", count=1}}
This works:
Code: Select all
game.surfaces['nauvis'].create_entity{name="item-on-ground",position={0,0},stack={name="rocket", count=1}}