Advertisement
Maffin1231

Untitled

Nov 16th, 2023 (edited)
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | Gaming | 0 0
  1. function iff (x,y,z)
  2. if a[x][y][z]==1 then
  3. turtle.select(1)
  4. elseif a[x][y][z]==2 then
  5. turtle.select(2)
  6. elseif a[x][y][z]==3 then
  7. turtle.select(3)
  8. elseif a[x][y][z]==4 then
  9. turtle.select(4)
  10. elseif a[x][y][z]==5 then
  11. turtle.select(5)
  12. elseif a[x][y][z]==6 then
  13. turtle.select(6)
  14. elseif a[x][y][z]==0 then
  15. turtle.select(16)
  16. end
  17. end
  18.  
  19. a={{{1,1,1,1,1,1},
  20.    {1,1,1,1,1,1},
  21.    {1,1,1,1,1,1},
  22.    {1,1,1,1,1,1},
  23.    {1,1,1,1,1,1},
  24.    {1,1,1,1,1,1},
  25.    {1,0,0,0,0,1},
  26.    {1,0,0,0,0,1},
  27.    {1,0,0,0,0,1},
  28.    {1,0,0,0,0,1},
  29.    {1,1,1,1,1,1},
  30.    {1,1,1,1,1,1},
  31.    {3,3,3,3,3,3},
  32.    {3,3,3,3,3,3},
  33.    {3,3,3,3,3,3},
  34.    {3,3,3,3,3,3},
  35.    {3,3,3,3,3,3},
  36.    {3,3,3,3,3,3}},
  37. }
  38.  
  39. for x=1, #a do
  40.  for y=1, #a[x] do
  41.   for z=1, #a[x][y] do
  42.    iff(x,y,z)
  43.    turtle.placeDown()
  44.    turtle.forward()
  45.  end
  46.  
  47.  
  48. turtle.turnRight()
  49. turtle.forward()
  50. turtle.turnRight()
  51.  
  52. for y = 1,#a[x][y] do
  53. turtle.forward()
  54. end
  55.  
  56.  
  57. turtle.turnRight()
  58. turtle.turnRight()
  59. end
  60.  
  61. turtle.turnLeft()
  62. for y = 1,#a[x] do
  63. turtle.forward()
  64.  
  65. end
  66. turtle.turnRight()
  67. turtle.up()
  68. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement