Advertisement
VADemon

Untitled

Dec 1st, 2012
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. block_count = 1
  2.  
  3. function block_select()
  4.     if block_count == 550 then
  5.         block_count = 1
  6.         for i=1,5 do turtle.up() end
  7.         sleep(60)
  8.         for i=1,5 do turtle.down() end
  9.     end
  10. end
  11.  
  12. x = 24
  13.  
  14. function place_in_row()
  15.     for i=1,x do
  16.         turtle.placeDown()
  17.         sleep(0.075)
  18.         turtle.forward()
  19.         block_count = block_count + 1
  20.     end
  21.     turtle.placeDown()
  22.     block_count = block_count + 1
  23. end
  24.  
  25. function go_back()
  26.     turtle.placeDown()
  27.     block_count = block_count + 1
  28.     for i=1,x do
  29.         turtle.placeDown()
  30.         sleep(0.075)
  31.         turtle.back()
  32.         block_count = block_count + 1
  33.     end
  34.     turtle.placeDown()
  35.     block_count = block_count + 1
  36. end
  37.  
  38. for i=1,1 do
  39.     place_in_row()
  40.     turtle.up()
  41.     go_back()
  42.     turtle.turnRight()
  43.     turtle.forward()
  44.     turtle.turnLeft()
  45.     turtle.down()
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement