SHOW:
|
|
- or go back to the newest paste.
1 | local slotChanged = false | |
2 | ||
3 | while true do | |
4 | turtle.attack() | |
5 | turtle.suck() | |
6 | for i = 1, 4 do | |
7 | if turtle.getItemCount(i) > 0 then | |
8 | turtle.select(i) | |
9 | turtle.dropDown() | |
10 | slotChanged = true | |
11 | end | |
12 | end | |
13 | - | if slotChanged |
13 | + | if slotChanged then |
14 | turtle.select(1) | |
15 | end | |
16 | sleep(.1) | |
17 | end |