Advertisement
Alakazard12

Slabber

Dec 2nd, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.58 KB | None | 0 0
  1. print("Creating plot")
  2.  
  3. local dir = 1
  4.  
  5. local curl = 1
  6.  
  7. local curt = 1
  8.  
  9. local dirt = 0
  10.  
  11. --[[
  12. turtle.select(curl)
  13.  
  14. turtle.digDown()
  15. turtle.down()
  16.  
  17. for i = 1, 4 do
  18.     if i > 1 then
  19.         turtle.turnLeft()
  20.     end
  21.     for i = 1, 21 do
  22.         if turtle.getItemCount(curl) == 0 then
  23.             curl = curl + 1
  24.         end
  25.         if turtle.detect() then
  26.             turtle.dig()
  27.         end
  28.         if not turtle.detectDown() then
  29.             turtle.placeDown()
  30.         end
  31.         turtle.forward()
  32.     end
  33. end
  34.  
  35. turtle.turnLeft()
  36. turtle.up()
  37. ]]
  38.  
  39. turtle.select(curt)
  40.  
  41. for i = 1, 4 do
  42.     if i > 1 then
  43.         turtle.turnLeft()
  44.     end
  45.     for t = 1, 21 do
  46.         if turtle.getItemCount(curt) == 0 then
  47.             turtle.select(curt + 1)
  48.         end
  49.         if not turtle.detectDown() or not turtle.compareDown() then
  50.             turtle.digDown()
  51.             turtle.placeDown()
  52.         end
  53.         if turtle.detect() then
  54.             turtle.dig()
  55.         end
  56.         turtle.forward()
  57.     end
  58. end
  59.  
  60. --[[
  61. turtle.turnLeft()
  62. turtle.forward()
  63. turtle.turnLeft()
  64. turtle.forward()
  65. turtle.turnRight()
  66. turtle.down()
  67. turtle.select(curl)
  68.  
  69. for i = 1, 19 do
  70.     for t = 1, 19 do
  71.         if turtle.compareDown(1) == false then
  72.             turtle.digDown()
  73.         end
  74.         if turtle.detectDown() == false then
  75.             if turtle.getItemCount(curl) == 0 then
  76.                 curl = curl + 1
  77.                 turtle.select(curl)
  78.             end
  79.             turtle.placeDown()
  80.         end
  81.         if turtle.detect() then
  82.             turtle.dig()
  83.         end
  84.         turtle.forward()
  85.     end
  86.     if dir == 1 then
  87.         turtle.turnLeft()
  88.         turtle.dig()
  89.         turtle.forward()
  90.         turtle.turnLeft()
  91.         dir = 2
  92.     elseif dir == 2 then
  93.         turtle.turnRight()
  94.         turtle.dig()
  95.         turtle.forward()
  96.         turtle.turnRight()
  97.         dir = 1
  98.     end
  99. end
  100. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement