SHOW:
|
|
- or go back to the newest paste.
| 1 | local i = 0 | |
| 2 | ||
| 3 | for i=3,16 do | |
| 4 | if turtle.getItemCount(i) > 0 then | |
| 5 | turtle.select(i) | |
| 6 | for i2=9,16 do | |
| 7 | turtle.transferTo(i2, 64) | |
| 8 | end | |
| 9 | end | |
| 10 | - | i = 0 |
| 10 | + | end |
| 11 | - | while turtle.detectUp() do |
| 11 | + | |
| 12 | - | i = i + 1 |
| 12 | + | |
| 13 | - | if i < 6 then |
| 13 | + | |
| 14 | turtle.select(2) | |
| 15 | turtle.place() | |
| 16 | turtle.dig() | |
| 17 | turtle.forward() | |
| 18 | ||
| 19 | for i=1,6 do | |
| 20 | if turtle.detectUp() then | |
| 21 | turtle.digUp() | |
| 22 | turtle.up() | |
| 23 | end | |
| 24 | - | for i=3,8 do |
| 24 | + | |
| 25 | ||
| 26 | while not turtle.detectDown() do | |
| 27 | turtle.down() | |
| 28 | end | |
| 29 | ||
| 30 | turtle.turnRight() | |
| 31 | turtle.turnRight() | |
| 32 | turtle.forward() | |
| 33 | ||
| 34 | for i=3,8 do | |
| 35 | if turtle.getItemCount(i) > 0 then | |
| 36 | turtle.select(i) | |
| 37 | if turtle.getItemCount(i) < 4 then | |
| 38 | for i2=9,16 do | |
| 39 | turtle.transferTo(i2, 64) | |
| 40 | end | |
| 41 | end | |
| 42 | turtle.drop() | |
| 43 | end | |
| 44 | end | |
| 45 | ||
| 46 | for i=9,16 do | |
| 47 | turtle.select(i) | |
| 48 | turtle.transferTo(1, 64) | |
| 49 | turtle.transferTo(2, 64) | |
| 50 | end | |
| 51 | ||
| 52 | turtle.select(1) | |
| 53 | turtle.turnRight() | |
| 54 | turtle.turnRight() | |
| 55 | end |