SHARE
TWEET

droom.lua

a guest Dec 13th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function fwd(stp)
  2.   for c=1,stp do
  3.     while turtle.detect() do
  4.      turtle.dig()
  5.      sleep(0.25)
  6.      end
  7.     turtle.forward()
  8.     turtle.digUp()
  9.     turtle.digDown()
  10.   end
  11. end
  12.  
  13. function left(stp)
  14.  for c=1, stp do
  15.   turtle.turnLeft()
  16.  end
  17. end
  18.  
  19. function right (stp)
  20.  for c=1, stp do
  21.   turtle.turnRight()
  22.  end
  23. end
  24.  
  25. function digroom()
  26.  fwd(6)
  27.  left(1)
  28.  fwd(2)
  29.  left(1)
  30.  fwd(4)
  31.  left(1)
  32.  fwd(4)
  33.  left(1)
  34.  fwd(4)
  35.  left(1)
  36.  fwd(1)
  37.  left(1)
  38.  fwd(3)
  39.  right(1)
  40.  fwd(2)
  41.  right(1)
  42.  fwd(2)
  43.  right(1)
  44.  fwd(1)
  45.  right(1)
  46.  fwd(5)
  47. end
  48.  
  49. digroom()
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