But a string works just fine (as expected from a SimpleItemStack):LuaSurface.create_entity{}
item-entity
stack :: SimpleItemStack: The stack of items to create. This must be a table, i.e. a single string is not allowed here.
Code: Select all
/c game.surfaces.nauvis.create_entity{name="item-on-ground",position=game.player.position,stack='iron-ore'}

