Which allowed me to create this mod (WIP), where you can insert/outsert from custom inventories. I currently implemented this by adding some invisible proxy-containers at the pickup/drop positions.
It would be neater without the containers if we can set the drop/pickup inventories directly with
Code: Select all
entity.drop_inventory = defines.inventory.assembling_machine_modules
entity.pickup_inventory = defines.inventory.assembling_machine_input
When `drop/pickup_inventory` is nil it should revert to the default behaviour.
This is for all entities that have a drop/pickup_target/position defined (inserters, loaders, mining-drills and crafting-machines, unless I'm missing any).
An alternative interface suggestion is to change drop/pickup_target to
Code: Select all
entity.drop_target = {
position = {x=.., y=..},
entity = entity_target,
inventory = defines.inventory.assembling_machine_modules
}
Usecases:
- Reinserting modules when they were automatically removed by a "set_recipe" recipe not allowing that type of module.
- Inserting processing units/LDS/rocket fuel directly into the inventories of rocket silos.
- Chaining crafting machines input/fuel like you can chain labs.