Page 1 of 1

spill_item_stack Returning created stack entity

Posted: Sat Nov 07, 2015 7:43 am
by ludsoe
spill_item_stack Doesn't return the created item stack. Can it be changed to return the created stack?

(Also I'm not sure what else to say since I'm just asking for it to return the stack it created. My reason being I'm creating the stack and then doing some stuff to it while it exists in the world.)

Re: spill_item_stack Returning created stack entity

Posted: Sat Nov 07, 2015 6:43 pm
by Rseding91
spill_item_stack creates N number of item stacks depending on the count of the item stack you passed in where N can be any number.

If you gave it a item stack of 5000 it would create 5000 item stack entities.

If you just want to make 1 item-on-ground entity you can just use create_entity and set_stack on that.

Re: spill_item_stack Returning created stack entity

Posted: Tue Nov 10, 2015 10:19 am
by ludsoe
Ah I see then, I guess it could return a table full of the created stacks? None the less Guess ill use the tactic you said. Thanks.