spill_item_stack Returning created stack entity

Post Reply
User avatar
ludsoe
Fast Inserter
Fast Inserter
Posts: 243
Joined: Tue Feb 11, 2014 8:16 am
Contact:

spill_item_stack Returning created stack entity

Post 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.)

Rseding91
Factorio Staff
Factorio Staff
Posts: 13223
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: spill_item_stack Returning created stack entity

Post 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.
If you want to get ahold of me I'm almost always on Discord.

User avatar
ludsoe
Fast Inserter
Fast Inserter
Posts: 243
Joined: Tue Feb 11, 2014 8:16 am
Contact:

Re: spill_item_stack Returning created stack entity

Post 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.

Post Reply

Return to “Implemented mod requests”