Separated Item IO Procedure

In the last example one single item transfer procedure is shown. However, for more complex operations such as crafting, we need to split inputting item and outputting item into two separate procedures.

They are extremely similar to the single item transfer procedure, except that now you can specify filters in both procedures. Just as expected, only items pass through both procedures will be moved. Otherwise it will stay inside the container as if nothing has happened.

Side note: item transport is better optimized for plain item moving. Use it whenever possible

Item Import Procedure

The item input procedure will scan through each specified face for every specified inventory, trying to extract items that matches the filter. The resulting items will be avilable to other procedures in an internal "inventory".

Technical note: the act of extracting items from inventories are lazy: as in, the extractItem function will only be called if some downstream procedure actually consumed it.

Item Export Procedure

The item export procedure will look into each inventory at all specified faces, trying to insert items available in the internal inventory,

Last updated