Teleport Inventory from chest to chest

Place to get help with not working mods / modding interface.
Fiend
Burner Inserter
Burner Inserter
Posts: 11
Joined: Tue Sep 08, 2020 7:56 pm
Contact:

Teleport Inventory from chest to chest

Post by Fiend »

So I want to "teleport" inventory from one chest to another, I have two questions:
1. Is there a way to actually teleport inventory? or should I use .insert in one chest and remove from the other?
2. I am trying out insert/remove and I'm able to use .insert in the destination chest but what should I use to remove certain item's inventory with a specific amount from the source chest?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15897
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Teleport Inventory from chest to chest

Post by Rseding91 »

You'd want to iterate the slots in the inventory and use https://lua-api.factorio.com/latest/Lua ... sfer_stack
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding help”