This is what I'm trying to do:
Code: Select all
Loop
If item# = 1 and chest1.contents > 0 then
Move one item from chest1 to belt
item# += 1
End If
If item# = 2 and chest2.contents > 0 then
Move one item from chest2 to belt
item# += 1
End If
If item# = 3 and chest3.contents > 0 then
Move one item from chest3 to belt
item# += 1
End If
...
...
...
If item# = (last item) and (last chest).contents > 0 then
Move one item from (last chest) to belt
item# = 1
End If
End Loop