Setting up an item moving system

Basic Procedures

To get started, create a Interval Trigger and an Item Transferer, connect them by clicking on the output node of the trigger, and then click on the input node of the item transferer. Now, every time the trigger reaches its condition, it will run all the connected procedures to it.

A procedure is one node inside the flowchart. It has a set of properties that can be configured through menus when it is expanded. As a side note, in code, procedures represents the data and running logic, and a flow component is its client-side representation (GUI widget)

Interval Trigger

The interval trigger procedure has only one setting, the interval. As mentioned above, each property of a procedure is represented by a menu when its corresponding flow component is expanded. In this case, the interval property is for how long will this command graph get ran, as its name suggests.

Item Transfer Procedure: Inventories

The inventories properties specifies the inventories to operate on. Those can be chests, furnaces, or modded containers. The only requirement is that they have at least one IItemHandler capability. Additionally there is this red text field on the top. That is a search box. By typing in it and press enter, it will filter the inventories by their item name.

Side note: right click on an inventory target will bring up a context menu that says “Highlight in world”, and by selecting it the block will be highlighted using red outlines.

Item Transfer Procedure: Direction

The directions properties specifies which side of the inventories to interact from. If multiple sides are specified, the procedure will work with them one by one, in the order of Down, Up, North, South, West, and East (order of the Direction enum).

Item Transfer Procedure: Filter

The filter property specifies which items should be allowed, just as what you expect from a logistics mod. There are currently two filter modes, traits mode and tags mode. The traits mode filter by item type, damage, and their NBT tags. The tags mode filter by theirs tags, or ore dictionaries as they are called before 1.13. You can change between these two modes by right clicking on the Filter menu and select “Change to … Filter”

For the traits filter, click on one of the slots will bring up a window of the player inventory. Select one of your slots to specify the filter. (order of the Direction enum)

Filter settings such as whether to match item damage, NBT can be specified with the gear icon on the bottom right corner

Program in Operation

After specifying all the properties, our first application will be functional. By putting items in the input chest, only the whitelisted items (chest and inventory cable) will be moved to the output chest. Such action will be run every one second according to the trigger interval property.

Last updated