Advertisement
icdb

[ComputerCraft] lumber_01

Jul 3rd, 2014
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. while true do
  2. turtle.select(15)
  3. if turtle.getItemCount() < 32 then
  4.   turtle.turnLeft()
  5.   turtle.forward()
  6.   turtle.drop()
  7.   sleep(0.5)
  8.   turtle.suck()
  9.   turtle.back()
  10.   turtle.turnRight()
  11. end
  12. turtle.select(16)
  13. if turtle.getItemCount() < 32 then
  14.   turtle.turnRight()
  15.   turtle.forward()
  16.   turtle.drop()
  17.   sleep(0.5)
  18.   turtle.suck()
  19.   turtle.back()
  20.   turtle.turnLeft()
  21. end
  22.  
  23. turtle.forward()
  24. turtle.select(15)
  25. turtle.place()
  26. turtle.select(15)
  27. u=true
  28. repeat
  29.   turtle.select(16)
  30.   u=turtle.place()
  31. until u==false
  32.  
  33. turtle.select(1)
  34. turtle.dig()
  35. turtle.forward()
  36. z=true
  37. repeat
  38.   turtle.digUp()
  39.   turtle.up()
  40.   z=turtle.compareUp()
  41. until z==false
  42.  
  43. repeat
  44.   turtle.down()
  45.   u=turtle.detectDown()
  46. until u==true
  47.  
  48. turtle.turnLeft()
  49. turtle.turnLeft()
  50. turtle.forward()
  51. turtle.forward()
  52. for i = 1, 14, 1 do
  53.   turtle.select(i)
  54.   turtle.drop()
  55. end
  56.  
  57. turtle.turnRight()
  58. turtle.turnRight()
  59.  
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement