Page 1 of 1
Writable LuaEntity:held_stack_position
Posted: Sun May 07, 2017 5:14 pm
by sparr
I want to be able to force an item into an inserter's hand so that I don't have to make an invisible chest for it to automatically grab from.
I want to set the current position of the hand so that when I create the entities they will start with the hand in the right spot, rather than having to animate to get there.
Re: Writable LuaEntity:held_stack and held_stack_position
Posted: Sun May 07, 2017 5:45 pm
by Nexela
held_stack is an inventory stack so doing this will work inserter.held_stack.set_stack({name=item, count=1})
Re: Writable LuaEntity:held_stack_position
Posted: Sun May 07, 2017 6:03 pm
by sparr
Thanks. It is a LuaItemStack and you seem to be right! Halfway there!