Advertisement
DENYS_YouTube

Untitled

May 12th, 2024
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- 0 - empty
  2. -- 1 - black
  3. -- 2 - yellow
  4. -- 3 - red
  5. -- 4 -brown
  6. art = {
  7.   {0, 1, 1, 0, 0, 0, 0, 1},
  8.   {0, 0, 2, 2, 0, 0, 0, 2},
  9.   {0, 0, 0, 2, 2, 2, 2, 2},
  10.   {2, 2, 0, 2, 1, 2, 2, 1},
  11.   {2, 2, 0, 3, 2, 2, 2, 2},
  12.   {0, 4, 2, 2, 2, 2, 2, 0},
  13.   {0, 4, 2, 2, 2, 2, 2, 0},
  14.   {0, 0, 2, 2, 4, 4, 2, 0},
  15. }
  16.  
  17. for y = 1, #art do
  18.     for x = 1, #art[y] do
  19.       slot = art[y][x]
  20.       if slot ~= 0 then
  21.           turtle.select(slot)
  22.           turtle.placeDown()
  23.       end
  24.       turtle.forward()
  25.     end
  26.  
  27.     for i = 1, #art[y] do
  28.       turtle.back()
  29.     end
  30.     turtle.turnRight()
  31.     turtle.forward()
  32.     turtle.turnLeft()
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement