Advertisement
DENYS_YouTube

Untitled

May 19th, 2024
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. -- 0 - empty
  2. -- 1 - black
  3. -- 2 - red
  4.  
  5. art = {
  6.   {0, 0, 1, 1, 0, 1, 1, 0, 0},
  7.   {0, 1, 2, 2, 1, 2, 2, 1, 0},
  8.   {1, 2, 2, 2, 2, 2, 2, 2, 1},
  9.   {1, 2, 2, 2, 2, 2, 2, 2, 1},
  10.   {1, 2, 2, 2, 2, 2, 2, 2, 1},
  11.   {0, 1, 2, 2, 2, 2, 2, 1, 0},
  12.   {0, 0, 1, 2, 2, 2, 1, 0, 0},
  13.   {0, 0, 0, 1, 2, 1, 0, 0, 0},
  14.   {0, 0, 0, 0, 1, 0, 0, 0, 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  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement