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( "Success." )
- local sResponse = response.readAll()
- response.close()
- local file = fs.open( "t", "w" )
- file.write( sResponse )
- 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." )
- return
- end
- end
- --tunnel mining turtle
- --Places Cobblestone when it does not detect blocks beneath it,
- --creating bridges through caverns. Use any frequently occurring
- --block. Cobblestone not required, just a block that doesn't fall
- --that your turtle will be mining plenty of.
- print("place torches in slot 1 and cobblestone in slot 2")
- print("dig in how far?")
- local dist = t.readNum()
- write("turtle fuel level is ")
- write(turtle.getFuelLevel())
- print(", ok?")
- read()
- local torch =0
- for i=1, dist do
- t.forward()
- t.digUp()
- t.digDown()
- torch = torch+1
- if torch == 6 then
- t.right()
- if not turtle.detect() then
- t.place(2)
- end
- t.up()
- t.place(1)
- t.left()
- t.down()
- torch = 0
- end
- end
- t.down()
- for i=1, dist do
- turtle.back()
- if not turtle.detectDown() then
- t.placeDown(2)
- end
- end
- t.up()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement