Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for l=1,10 do
- if fs.exists("goto") == false
- then do
- print("downloading goto")
- shell.run("pastebin","get","Rj9UiYUJ","goto")
- end
- else do
- while true do
- if turtle.getItemCount(2) ~= 0
- then do
- turtle.select(2)
- turtle.turnLeft()
- shell.run("goto", "300", "66", "331")
- shell.run("goto", "302", "66", "330")
- while turtle.getItemCount(2) ~= 0 do
- turtle.drop()
- turtle.turnRight()
- end
- end
- else do
- if turtle.getItemCount(1) ~= 0
- then do
- turtle.turnLeft()
- shell.run("goto", "300", "67", "331")
- shell.run("goto", "300", "67", "333")
- turtle.select(2)
- turtle.craft()
- end
- else do
- turtle.select(1)
- if turtle.getItemCount(1) == 0
- then do
- shell.run("goto", "301", "67", "331")
- --sleep(2)
- shell.run("goto", "300", "67", "333")
- turtle.suck()
- turtle.turnLeft()
- end
- if turtle.getItemCount(1) == 0
- then do
- print("nothing")
- sleep(10)
- end
- print("grab")
- end
- else do
- end
- shell.run("goto", "300", "67", "331")
- shell.run("goto", "300", "67", "333")
- os.reboot()
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment