Advertisement
Guest User

fillMax

a guest
Jun 29th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. turtle.forward()
  2. x = 1
  3. turtle.select(x)
  4. while turtle.detectDown() == false do
  5.   while turtle.detectDown() == false do
  6.     if turtle.placeDown() == false then
  7.       x = x+1
  8.     end
  9.     if x == 17 then
  10.       turtle.back()
  11.       turtle.back()
  12.     else
  13.       turtle.select(x)
  14.     end
  15.   end
  16.   turtle.forward()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement