Advertisement
stepan_xerx

Untitled

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