Physical setup - umnikos/hopper.lua GitHub Wiki
Everything should be on the same network
Because of CC networking rules, both of these setups will NOT work for transferring items between chests:
For a refresher of those rules, refer to the following cheatsheet. The red, green and blue lines each mark a separate network, and transfer is only possible if the source and destination chests are on the same network.
No double modems
DO NOT connect the same chest two or more times to the same network via multiple modems (as shown below). This will make the one chest appear as two chests and will throw off all internal logic.
Connecting the same chest to multiple networks is perfectly okay though, and is the de facto method for transferring items between networks (as shown below)
Turtles should manage their own inventory
Because of api quirks, only a turtle is capable of .list()
-ing its own inventory, and therefore any logistics code that wants to transfer to and from the turtle must run on said turtle. (use the self
peripheral name to achieve that through hopper.lua)
Additionally, the only fast way to transport items to and from the turtle is via a modem, so you should use wired modems for turtle item logistics whenever possible, and at all times when using hopper.lua (turtle.suck
and turtle.drop
are just not supported)
Create integrations
On Forge it just works, on Fabric you need UnlimitedPeripheralWorks installed.
Additionally there is quirkiness with how some blocks such as crushing wheels work if you wrap them in the following way, as slot 1 is the input and slots 2-16 are the outputs where pushing to the input slot is only possible if all the output slots are empty. Thus -to_limit 64 -min_batch 64
is the way to push items in and -from_slot_range 2 16
is the way to pull items out.
Alternatively you could also just use a funnel to achieve the same result in a way simpler way
AE2 integrations
On Forge you need to use the ME Bridge from Advanced Peripherals. On Fabric you need UnlimitedPeripheralWorks installed and to connect a wired modem to any energy cell on the network. (yes, an energy cell)