Advertisement
jBlume

Pixel Circle

Jun 25th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.39 KB | None | 0 0
  1. --Building Materials Check
  2. if turtle.getItemCount(16)<1 then
  3.  print "Out of Building Materials."
  4.  turtle.reboot()
  5. end
  6.  
  7. --Set r
  8. r=1
  9. turtle.select(r)
  10.  
  11. --Height
  12. for h=1,5 do
  13.  
  14. --4 part circle
  15. for c=1,4 do
  16.  turtle.digUp()
  17.  turtle.up()
  18.  turtle.placeDown()
  19.  
  20. --Item Check/Switch
  21.  if r<16 and turtle.getItemCount(r)<1 then
  22.   r=r+1
  23.   turtle.select(r)
  24.  end
  25.  if turtle.getItemCount(16)<1 then
  26.  print "Out of Building Materials."
  27.  turtle.reboot()
  28. end
  29.  
  30. for t=1,8 do
  31.  turtle.turnRight()
  32.  turtle.dig()
  33.  turtle.forward()
  34.  turtle.turnLeft()
  35.  turtle.dig()
  36.  turtle.forward()
  37.  turtle.digDown()
  38.  turtle.placeDown()
  39.  if r<16 and turtle.getItemCount(r)<1 then
  40.     r=r+1
  41.     turtle.select(r)
  42.    end
  43.   if turtle.getItemCount(16)<1 then
  44.     print "Out of Building Materials."
  45.     turtle.reboot()
  46.    end
  47.  turtle.dig()
  48.  turtle.forward()
  49.  turtle.digDown()
  50.  turtle.placeDown()
  51.  if r<16 and turtle.getItemCount(r)<1 then
  52.     r=r+1
  53.     turtle.select(r)
  54.    end
  55.   if turtle.getItemCount(16)<1 then
  56.     print "Out of Building Materials."
  57.     turtle.reboot()
  58.    end
  59. end
  60.  
  61. for f=1,7 do
  62.  turtle.dig()
  63.  turtle.forward()
  64.  turtle.digDown()
  65.  turtle.placeDown()
  66.  if r<16 and turtle.getItemCount(r)<1 then
  67.     r=r+1
  68.     turtle.select(r)
  69.    end
  70.   if turtle.getItemCount(16)<1 then
  71.     print "Out of Building Materials."
  72.     turtle.reboot()
  73.    end
  74. end
  75.  
  76. for b=1,7 do
  77.  turtle.dig()
  78.  turtle.forward()
  79.  turtle.turnLeft()
  80.  turtle.dig()
  81.  turtle.forward()
  82.  turtle.turnRight()
  83.  turtle.digDown()
  84.  turtle.placeDown()
  85.  if r<16 and turtle.getItemCount(r)<1 then
  86.     r=r+1
  87.     turtle.select(r)
  88.    end
  89.   if turtle.getItemCount(16)<1 then
  90.     print "Out of Building Materials."
  91.     turtle.reboot()
  92.    end
  93.  turtle.dig()
  94.  turtle.forward()
  95.  turtle.digDown()
  96.  turtle.placeDown()
  97.  if r<16 and turtle.getItemCount(r)<1 then
  98.     r=r+1
  99.     turtle.select(r)
  100.    end
  101.   if turtle.getItemCount(16)<1 then
  102.     print "Out of Building Materials."
  103.     turtle.reboot()
  104.    end
  105. end
  106.  
  107. turtle.dig()
  108. turtle.forward()
  109. turtle.turnLeft()
  110. turtle.dig()
  111. turtle.forward()
  112. turtle.digDown()
  113. turtle.placeDown()
  114.  if r<16 and turtle.getItemCount(r)<1 then
  115.     r=r+1
  116.     turtle.select(r)
  117.    end
  118.   if turtle.getItemCount(16)<1 then
  119.     print "Out of Building Materials."
  120.     turtle.reboot()
  121.    end
  122.  
  123. turtle.turnRight()
  124. turtle.dig()
  125. turtle.forward()
  126. turtle.turnLeft()
  127. turtle.dig()
  128. turtle.forward()
  129. turtle.down()
  130.  
  131. end
  132. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement