Advertisement
Maffin1231

Sasha

Dec 28th, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.61 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 = {
  20.     {
  21.         {0,1,1,1,1,1,0},
  22.         {0,1,0,0,0,1,0},
  23.         {0,1,0,0,0,1,0},
  24.         {0,1,0,0,0,1,0},
  25.         {0,2,2,1,2,2,0}
  26.     },
  27.     {
  28.         {0,1,1,1,1,1,0},
  29.         {0,1,0,0,0,1,0},
  30.         {0,1,0,0,0,1,0},
  31.         {0,1,0,0,0,1,0},
  32.         {0,1,1,3,1,1,0}
  33.     },
  34.     {
  35.         {0,1,1,1,1,1,0},
  36.         {0,1,0,0,0,1,0},
  37.         {0,1,0,0,0,1,0},
  38.         {0,1,0,0,0,1,0},
  39.         {0,1,3,1,3,1,0}
  40.     },
  41.     {
  42.         {0,1,1,1,1,1,0},
  43.         {0,1,0,0,0,1,0},
  44.         {0,1,0,0,0,1,0},
  45.         {1,1,0,0,0,1,1},
  46.         {0,1,1,1,1,1,0}
  47.     },
  48.     {
  49.         {0,0,0,0,0,0,0},
  50.         {0,0,0,0,0,0,0},
  51.         {0,0,0,0,0,0,0},
  52.         {1,2,1,0,1,2,1},
  53.         {0,0,0,0,0,0,0}
  54.     },
  55.     {
  56.         {0,0,0,0,0,0,0},
  57.         {0,0,0,0,0,0,0},
  58.         {0,0,0,0,0,0,0},
  59.         {4,4,0,0,0,4,4},
  60.         {0,0,0,0,0,0,0}
  61.     }
  62. }
  63.  
  64.  
  65. turtle.up()
  66.  
  67. for x=1, #a do
  68.   for y=1, #a[x] do
  69.     for z=1, #a[x][y] do
  70.       iff(x,y,z)
  71.       turtle.placeDown()
  72.       turtle.forward()
  73.     end
  74.  
  75. turtle.turnRight()
  76. turtle.forward()
  77. turtle.turnRight()
  78.  
  79. for y = 1,#a[x][y] do
  80. turtle.forward()
  81. end
  82.  
  83. turtle.turnRight()
  84. turtle.turnRight()
  85. end
  86.  
  87. turtle.turnLeft()
  88. for y = 1,#a[x] do
  89. turtle.forward()
  90.  
  91. end
  92. turtle.turnRight()
  93. turtle.up()
  94. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement