SHARE
TWEET

do.lua

a guest Feb 14th, 2020 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.     while true do
  3.         rs.setAnalogOutput("right", 15)
  4.         sleep(1)
  5.         rs.setAnalogOutput("right", 0)
  6.    
  7.         hasFluid, data = turtle.inspect()
  8.    
  9.         if hasFluid == false then
  10.             sleep(5)
  11.             break
  12.         end
  13.    
  14.         rs.setAnalogOutput("top", 15)
  15.         sleep(1)
  16.         rs.setAnalogOutput("top", 0)
  17.         sleep(2)
  18.    
  19.         rs.setAnalogOutput("left", 15)
  20.         sleep(1)
  21.         rs.setAnalogOutput("left", 0)
  22.    
  23.         hasFluid, data = turtle.inspect()
  24.    
  25.         while hasFluid == true do
  26.             sleep(1)
  27.            
  28.             hasFluid, data = turtle.inspect()
  29.         end
  30.    
  31.         turtle.turnLeft()
  32.         turtle.turnLeft()
  33.         turtle.turnLeft()
  34.         turtle.turnLeft()
  35.     end
  36. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top