fec955

turle_chessboard_pattern

Dec 1st, 2020
613
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sleep(1)
  2.  
  3. for y = 1, 10 do
  4.     for x = 1, 10 do
  5.        turtle.forward()
  6.        if ((y-1) * 10   x-1) % 2 == 0 then
  7.            turtle.digDown()
  8.        end
  9.     end
  10.     turtle.forward()
  11.     if y % 2 == 0 then
  12.         turtle.turnRight()
  13.         turtle.forward()
  14.         turtle.turnRight()
  15.     else
  16.         turtle.turnLeft()
  17.         turtle.forward()
  18.         turtle.turnLeft()
  19.     end
  20. end
RAW Paste Data