Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Loading Robust Turtle API...")
- local load = os.loadAPI("t")
- if load then
- print("Robust Turtle API loaded.")
- else
- print("Robust Turtle API not found in the root directory with filename t")
- print("Attempting to download as t from pastebin...")
- os.sleep(2)
- local response = http.get("http://pastebin.com/raw.php?i= e0UksEtT")
- if response then
- print("Great Success.")
- local data = response.readAll()
- response.close()
- local file = fs.open("t", "w")
- file.write(data)
- file.close()
- print("Downloaded as t")
- load = os.loadAPI("t")
- if load then
- print("Robust Turtle API installed & loaded.")
- end
- else
- print( "Download failed. Please install manually from http://pastebin.com/u/MrTurtle." )
- return
- end
- end
- --farms pumpkins/melons in alternating rows
- print("Place "..os.getComputerLabel().." above the block of wood.")
- read()
- local rows = 4
- local rowL = 8
- local wait = 60
- t.forward()
- t.up()
- while true do
- local side = "right"
- for i=1, rows do
- t.forward()
- for i=1,rowL do
- t.digDown()
- t.forward()
- --t.suckDown()
- end
- if side=="left" and i~=rows then
- t.goLeft(2)
- t.left()
- side="right"
- elseif side=="right" and i~=rows then
- t.goRight(2)
- t.right()
- side="left"
- elseif side=="left" and i==rows then
- t.goRight(2*(rows-1))
- t.right()
- elseif side=="right" and i==rows then
- t.strafeLeft(2*(rows-1))
- t.back(rowL+1)
- end
- end
- for i=wait, 0, -1 do
- term.clear()
- term.setCursorPos(1,1)
- print("Waiting "..i.." seconds to allow for growth.")
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement