Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. for j=1,args[1],1 do
  2.     print(" start of j = ",j)
  3.     for i=1,args[1],1 do
  4.         turtle.select(9)
  5.         turtle.dig()
  6.         if i==tonumber(args[1]) then
  7.             if  j==tonumber(args[i]) then
  8.                 turn(__add(j,1)) --if it's an odd number it turns one way if it's even it turns the other
  9.                 --I never get into this if statement
  10.             else
  11.                 turn(j)
  12.             end
  13.         else
  14.             turtle.forward()
  15.         end
  16.         placeBlockDown()
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement