TurboSlayer

platform2

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