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 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
- --bomb dropper turtle
- 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 ")--write does not goto a new line after printing
- print(turtle.getFuelLevel())--print does goto a new line
- print("place explosives starting in slot 1")
- print("Dumber of bombs to drop?")
- local bombs = t.readNum()
- print("distance to bomb drop site?")
- local range = t.readNum()
- print("Drop height?")
- local height = t.readNum()
- t.up(height)
- t.forward(range)
- bomb(bombs)
- t.back(range)
- t.down(height)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement