Creating item-on-ground with >1 stack count
Posted: Thu Jan 09, 2014 11:51 pm
I'd have posted in modding help except that I know this worked previously and don't remember reading that it ever got changed intentionally, so I'm assuming a bug.
From my understanding game.createentity{name="item-on-ground", position={x, y}, stack={name="iron-ore", count=99}} should create a single entity (of item-on-ground) that when picked up (using "f") will place 99 iron-ore items in the inventory, I remember having an inserter being able to pick this up and insert all 99 items in a chest at the same time or 'streaming' the 99 items onto a belt (rather as if it was holding a bucket and pouring the iron ore onto the belt). Now it seems to ignore it stack count and only create 1 item. Also, you can call stack.insert on an item-on-ground without error, but with no effect either.
If this is not a bug and was changed intentionally what would be your suggestions for replicating this effect? chests? I'd rather avoid creating 99 separate entities since blast mining sand from DyTech can easily result in a count above 100,000 with only an area of 1, an area of 10 would be able to get a count of over a million...
From my understanding game.createentity{name="item-on-ground", position={x, y}, stack={name="iron-ore", count=99}} should create a single entity (of item-on-ground) that when picked up (using "f") will place 99 iron-ore items in the inventory, I remember having an inserter being able to pick this up and insert all 99 items in a chest at the same time or 'streaming' the 99 items onto a belt (rather as if it was holding a bucket and pouring the iron ore onto the belt). Now it seems to ignore it stack count and only create 1 item. Also, you can call stack.insert on an item-on-ground without error, but with no effect either.
If this is not a bug and was changed intentionally what would be your suggestions for replicating this effect? chests? I'd rather avoid creating 99 separate entities since blast mining sand from DyTech can easily result in a count above 100,000 with only an area of 1, an area of 10 would be able to get a count of over a million...