Advertisement
RTS_Dmitriy

Untitled

Jan 27th, 2024 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- 0 - nothing
  2. -- 1 - brown
  3. -- 2 - sand
  4. -- 3 - white wool
  5. -- 4 - black wool
  6. -- 5 - pink wool
  7. pic = {
  8.     {0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0},
  9.     {0, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 0}
  10. }
  11.  
  12. row = 2
  13. column = 1
  14. slot = 0
  15. for row=1, 2 do
  16.     for column=1, 12 do
  17.       slot = pic[row][column]
  18.       if slot == 0 then
  19.         turtle.forward()
  20.       else
  21.         turtle.select(slot)
  22.         turtle.placeDown()
  23.         turtle.forward()
  24.       end
  25.     end
  26.     turtle.turnLeft()
  27.     turtle.forward()
  28.     turtle.turnRight()
  29.     for column = 1, 12 do
  30.       turtle.back()
  31.     end
  32. end
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement