Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkInv()
- turtle.select(11)
- if turtle.compareTo(15) then
- turtle.select(12)
- if turtle.compareTo(16) then
- return true
- end
- else
- return false
- end
- end
- function dropOff()
- turtle.turnLeft()
- turtle.drop()
- turtle.turnRight()
- end
- function suckSort()
- turtle.select(1)
- repeat
- x = turtle.suck()
- sleep(10)
- until x
- if turtle.compareTo(15) then
- if turtle.transferTo(11) then
- x = 1
- else
- dropOff()
- end
- else
- if turtle.compareTo(16) then
- if turtle.transferTo(12) then
- x = 1
- else
- dropOff()
- end
- else
- dropOff()
- end
- end
- if checkInv() then
- turtle.turnRight()
- turtle.select(11)
- turtle.drop()
- turtle.select(12)
- turtle.drop()
- turtle.turnLeft()
- end
- end
- i = 1
- repeat
- suckSort()
- until i == 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement