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
- --canyonmaker turtle. moves up then forward 6 spaces, drops TNT in a line every 4 spaces and returns.
- function bomb(x)
- for i = 1, x do
- turtle.placeDown(t.restack(1,8))
- redstone.setOutput("bottom", true )
- os.sleep(0.15)
- redstone.setOutput("bottom", false )
- end
- end
- term.clear() -- Clears the screen
- term.setCursorPos(1,1) -- Fixes the cursor position
- write("turtle fuel level is ")
- print(turtle.getFuelLevel())
- print("place explosives starting in slot 1")
- print("The more bombs, the deeper the canyon. how many bombs per drop??")
- local bombs = t.readNum()
- print("how long will the canyon be?")
- local range = t.readNum()
- print("drop height?")
- local drop = t.readNum()
- local breadcrumbs = 6
- t.up(drop)
- t.forward(6)
- for i=1, range, 4 do
- t.forward(5)
- breadcrumbs=breadcrumbs+4
- bomb(bombs)
- end
- t.back(breadcrumbs)
- t.down(drop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement