Guest User

livingrock

a guest
Oct 3rd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. local function forward3()
  2.   turtle.forward()
  3.   blocks()
  4.   turtle.forward()
  5.   blocks()
  6.   turtle.forward()
  7.   blocks()
  8. end
  9.  
  10. local function forward2()
  11.   turtle.forward()
  12.   blocks()
  13.   turtle.forward()
  14.   blocks()
  15. end
  16.  
  17. local function back()
  18.   turtle.turnRight()
  19.   turtle.down()
  20.   turtle.turnRight()
  21.   turtle.turnRight()
  22. end
  23.  
  24.  
  25. function blocks()
  26.   if turtle.inspectDown() == ("Botania:livingrock") then
  27.   turtle.forward()
  28.   else
  29.   turtle.select(2)
  30.   turtle.placeDown()
  31.   end
  32. end
  33.  
  34. turtle.up()
  35. forward3()
  36. turtle.turnLeft()
  37. forward2()
  38. turtle.turnLeft()
  39. forward2()
  40. turtle.turnLeft()
  41. forward2()
  42. back()
Advertisement
Add Comment
Please, Sign In to add comment