SHARE
TWEET

do.lua

a guest Feb 14th, 2020 59 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.         hasFluid2, data2 = turtle.inspect()
  15.        
  16.         while data.name == data2.name do
  17.             rs.setAnalogOutput("top", 15)
  18.             sleep(1)
  19.             rs.setAnalogOutput("top", 0)
  20.             sleep(2)
  21.    
  22.             hasFluid2, data2 = turtle.inspect()
  23.         end
  24.    
  25.         rs.setAnalogOutput("left", 15)
  26.         sleep(1)
  27.         rs.setAnalogOutput("left", 0)
  28.    
  29.         hasFluid, data = turtle.inspect()
  30.    
  31.         while hasFluid == true do
  32.             sleep(1)
  33.            
  34.             hasFluid, data = turtle.inspect()
  35.         end
  36.    
  37.         turtle.turnLeft()
  38.         turtle.turnLeft()
  39.         turtle.turnLeft()
  40.         turtle.turnLeft()
  41.     end
  42. 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