Page 1 of 1

Create LuaItemStack instead of SimpleItemStack

Posted: Sat Jan 21, 2017 9:26 pm
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.

Re: Create LuaItemStack instead of SimpleItemStack

Posted: Sat Jan 21, 2017 10:03 pm
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.