Advertisement
Guest User

place

a guest
Sep 1st, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. for side=1,4,1 do
  2.   turtle.select(side)
  3.   for each=1,5,1 do
  4.     if turtle.placeDown() == false then
  5.       repeat
  6.         for tool=14,16,1 do
  7.           turtle.select(tool)
  8.           turtle.equipLeft()
  9.           turtle.digDown()
  10.           turtle.drop()
  11.           turtle.equipLeft()
  12.         end
  13.         turtle.select(side)
  14.       until turtle.placeDown()
  15.     end
  16.     if turtle.forward() == false then
  17.       repeat
  18.         for tool=14,16,1 do
  19.           turtle.select(tool)
  20.           turtle.equipLeft()
  21.           turtle.dig()
  22.           turtle.drop()
  23.           turtle.equipLeft()
  24.         end
  25.         turtle.select(side)
  26.       until turtle.forward()
  27.     end
  28.   end
  29.   turtle.turnRight()
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement