TurboSlayer

antiplatform

Jan 15th, 2022 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local arg = {...}
  2.  
  3. local dim = arg[1]
  4.  
  5. for n=1,dim do
  6.     for m=1,dim-1 do
  7.         turtle.digDown()
  8.         turtle.forward()
  9.     end
  10.     turtle.digDown()
  11.        
  12.     if math.fmod(n,2) == 0 then
  13.         turtle.turnLeft()
  14.         turtle.forward()
  15.         turtle.turnLeft()
  16.     else
  17.         turtle.turnRight()
  18.         turtle.forward()
  19.         turtle.turnRight()
  20.        
  21.     end
  22. end
Add Comment
Please, Sign In to add comment