Surface create_entity fast_replace simulation no item

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
rtssmkn
Inserter
Inserter
Posts: 20
Joined: Sun May 22, 2016 10:36 am
Contact:

Surface create_entity fast_replace simulation no item

Post by rtssmkn »

It would be nice to have an additional parameter on Surface.create_entity that works in conjunction with fast_replace = true called no_item, which is also a boolean. When true, the fast replace will not yield an item, when false, which is the default, fast_replace will operate as normal.

The rationale behind this is that I am trying to speed up chest/container deconstruction in a mod and I need to preserve existing wirings and other stuff like filters and control logic conditions etc. The easiest and most efficient way to that will be to reuse the fast_replace mechanic already in place. This, however, will either drop an item onto the map or give the player an item, requiring me to add additional logic to the mod, whereas the simple parameter would free me from this terrible task of adding more logic to the mod :D

How about it?
Post Reply

Return to “Modding interface requests”