Create LuaItemStack instead of SimpleItemStack

Place to get help with not working mods / modding interface.
User avatar
Sirenfal
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Tue Jan 10, 2017 1:42 am
Contact:

Create LuaItemStack instead of SimpleItemStack

Post by Sirenfal »

Is there a way to create a LuaItemStack without an associated inventory? I want to use LuaSurface.spill_item_stack to drop an item-with-label that has its label set and I don't think that's possible with a SimpleItemStack?

Thanks.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15998
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Create LuaItemStack instead of SimpleItemStack

Post by Rseding91 »

There's currently no way to do that. "spill item stack" is the same as find-non-colliding-position + create entity so you can just do that yourself.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding help”