Advertisement
RTS_Dmitriy

Untitled

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