Damaged

Replace stuff with stone 2

Nov 5th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function PlaceStone()
  2.     if turtle.detectDown() then
  3.         turtle.digDown()
  4.         turtle.select( 1 )
  5.         turtle.drop()
  6.     end
  7.     for x=1,9 do
  8.         if turtle.getItemCount(x) then
  9.             turtle.select(x)
  10.             turtle.placeDown()
  11.         end
  12.     end
  13. end
  14.      
  15.  
  16. for i=1,9 do
  17.     while turtle.getItemCount(i) do
  18.         turtle.select(9)
  19.         if not turtle.compareDown() then
  20.             PlaceStone()
  21.         end
  22.         turtle.forward()
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment