Advertisement
Guest User

defloor.lua

a guest
Jan 19th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  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. fwd(88)
  26. right(1)
  27. fwd(1)
  28. right(1)
  29. fwd(88)
  30. left(1)
  31. fwd(1)
  32. left(1)
  33. fwd(88)
  34. right(1)
  35. fwd(1)
  36. right(1)
  37. fwd(88)
  38. left(1)
  39. fwd(1)
  40. left(1)
  41. fwd(88)
  42. left(1)
  43. fwd(4)
  44. left(1)
  45. fwd(88)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement