[Bilka] [0.17.42] API doc says stack can't be string even though it can.
Posted: Wed May 29, 2019 1:23 pm
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'}