Advertisement
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(4) ~= 0
- then do
- turtle.turnLeft()
- shell.run("goto", "303", "67", "330")
- shell.run("goto", "303", "67", "329")
- shell.run("goto", "301", "66", "328")
- turtle.select(4)
- turtle.drop()
- end
- else do
- ---------------------
- ---------------------
- ---------------------
- --CHANGE HERE START--
- ---------------------
- ---------------------
- ---------------------
- wait_time = 45
- -------------------
- -------------------
- --CHANGE HERE END--
- -------------------
- -------------------
- if turtle.getItemCount(1) == 0
- then do
- turtle.select(1)
- shell.run("goto", "303", "69", "347")
- shell.run("goto", "303", "69", "348")
- print("grab!")
- while turtle.getItemCount(1) == 0 do
- turtle.suck()
- if turtle.getItemCount(1) == 0 then
- sleep(wait_time)
- end
- end
- end
- else
- if turtle.getItemCount(2) == 0
- then do
- shell.run("goto", "303", "66", "333")
- shell.run("goto", "303", "66", "331")
- turtle.select(2)
- while turtle.getItemCount(2) == 0 do
- turtle.suck()
- if turtle.getItemCount(2) == 0 then
- sleep(wait_time)
- end
- end
- end
- else
- if turtle.getItemCount(3) == 0
- then do
- turtle.turnLeft()
- shell.run("goto", "307", "65", "329")
- shell.run("goto", "307", "65", "328")
- shell.run("goto", "305", "65", "327")
- turtle.select(3)
- while turtle.getItemCount(3) == 0 do
- turtle.suck()
- if turtle.getItemCount(3) == 0 then
- sleep(wait_time)
- end
- end
- end
- else
- if turtle.getItemCount(1) and turtle.getItemCount(2) and turtle.getItemCount(3) ~= 0
- then do
- turtle.select(4)
- turtle.craft()
- end
- else
- os.reboot()
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement