Page 1 of 1

Item stack on the ground

Posted: Fri Apr 03, 2020 6:28 am
by darkfrei
Hi devs!

Is it possible to place the whole item stack on the ground? So, that dozens of iron plates need the same place as only one, but with description:
item-stack-on-ground
with stack definition
{name = item_name, count = count}

Re: Item stack on the ground

Posted: Fri Apr 03, 2020 7:10 pm
by Mylon
This is already possible. surface.create_entity{name="item-on-ground", position=target_position, stack={item="iron-plate", count=100}} works just fine.

For example, Nougat Mining has this as a hidden config option by editing the variable at the top of control.lua. You can switch to generating items robot cargo sized stacks instead of singular items for much faster mining.