SHARE
TWEET

test

a guest Aug 25th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local a
  2. a = 1
  3. while ( a > 0 ) do
  4.  
  5. while true do
  6.   os.pullEvent("redstone")
  7.   if rs.getInput then
  8.  
  9. local forward = 3
  10. local rows = 2
  11. local back = forward + rows
  12.  
  13. while (turtle.getFuelLevel() < (forward + back)) do
  14.   turtle.select(1)
  15.   turtle.refuel(1)
  16. end
  17.  
  18. for i=1,forward do
  19.   turtle.forward()
  20. end
  21.  
  22. for i=1,rows do
  23.   turtle.dig()
  24.   turtle.forward()
  25.   turtle.turnLeft()
  26.   turtle.dig()
  27.   turtle.turnRight()
  28.   turtle.turnRight()
  29.   turtle.dig()
  30.   turtle.turnLeft()
  31. end
  32.  
  33. turtle.turnRight()
  34. turtle.turnRight()
  35.  
  36. for i=1,back do
  37.   turtle.forward()
  38. end
  39.  
  40. turtle.turnRight()
  41. turtle.turnRight()
  42.  
  43.   break
  44.  end
  45. end
  46. 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