Item stack on the ground

Things that already exist in the current mod API
Post Reply
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Item stack on the ground

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

User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Re: Item stack on the ground

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

Post Reply

Return to “Already exists”