Maffin1231

Untitled

Nov 26th, 2025
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.25 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]==7 then
  15. turtle.select(7)
  16. elseif a[x][y][z]==8 then
  17. turtle.select(8)
  18. elseif a[x][y][z]==9 then
  19. turtle.select(9)
  20. elseif a[x][y][z]==10 then
  21. turtle.select(10)
  22. elseif a[x][y][z]==11 then
  23. turtle.select(11)
  24. elseif a[x][y][z]==12 then
  25. turtle.select(12)
  26. elseif a[x][y][z]==13 then
  27. turtle.select(13)
  28. elseif a[x][y][z]==0 then
  29. turtle.select(16)
  30. end
  31. end
  32.  
  33.  
  34. a = {{{0,0,0,0,0,0,0},
  35.           {1,0,0,0,0,0,1},
  36.           {1,0,0,0,0,0,1},
  37.           {1,0,0,0,0,0,1},
  38.           {0,0,0,0,0,0,0},
  39.           {0,0,0,0,0,0,0},
  40.           {0,0,0,0,0,0,0},
  41.           {0,0,0,0,0,0,0},
  42.           {0,0,0,0,0,0,0},
  43.           {0,0,0,0,0,0,0},
  44.           {0,0,0,0,0,0,0},
  45.           {1,0,0,0,0,0,1},
  46.           {1,0,0,0,0,0,1},
  47.           {1,0,0,0,0,0,1},
  48.           {0,0,0,0,0,0,0}},
  49.  
  50. {{0,0,0,0,0,0,0},
  51.   {1,0,0,0,0,0,1},
  52.   {2,3,3,3,3,3,3},
  53.   {1,0,0,3,0,0,1},
  54.   {0,0,0,3,0,0,0},
  55.   {1,0,0,3,0,0,0},
  56.   {0,0,0,3,0,0,0},
  57.   {0,0,0,3,0,0,0},
  58.   {0,0,0,3,0,0,0},
  59.   {0,0,0,3,0,0,0},
  60.   {0,0,0,3,0,0,0},
  61.   {1,0,0,3,0,0,1},
  62.   {2,3,3,3,3,3,2},
  63.   {1,0,0,0,0,0,1},
  64.   {0,0,0,0,0,0,0}},
  65.  
  66. {{4,4,4,4,4,4,4},
  67.           {1,4,4,4,4,4,1},
  68.           {1,4,4,4,4,4,1},
  69.           {1,4,4,4,4,4,1},
  70.           {4,4,4,4,4,4,4},
  71.           {5,4,4,4,4,4,5},
  72.           {5,4,4,4,4,4,5},
  73.           {5,4,4,4,4,4,5},
  74.           {5,4,4,4,4,4,5},
  75.           {5,4,4,4,4,4,5},
  76.           {4,4,4,4,4,4,4},
  77.           {1,4,4,4,11,11,1},
  78.           {1,11,11,11,11,11,1},
  79.           {1,11,11,11,11,11,1},
  80.           {11,11,11,11,11,11,11}},
  81.  
  82. {{6,6,7,7,7,6,6},
  83.           {11,11,11,11,11,11,11},
  84.           {11,11,11,11,11,11,11},
  85.           {11,11,11,11,11,11,11},
  86.           {5,0,0,0,0,0,5},
  87.           {0,0,0,0,0,0,5},
  88.           {5,0,0,0,0,0,5},
  89.           {5,11,11,11,11,11,5},
  90.           {5,11,11,11,11,11,5},
  91.           {5,11,11,11,11,11,5},
  92.           {5,11,11,11,11,11,5},
  93.           {11,11,11,11,12,12,12},
  94.           {12,12,12,12,12,12,12},
  95.           {12,12,12,12,12,12,12},
  96.           {8,8,12,12,12,8,8}},
  97.  
  98. {{5,5,5,5,5,5,5},
  99.           {5,5,5,5,5,5,5},
  100.           {5,5,5,5,5,5,5},
  101.           {5,5,1,5,5,5,5},
  102.           {5,0,0,0,0,0,5},
  103.           {0,0,0,0,0,0,5},
  104.           {5,0,0,0,0,0,5},
  105.           {5,9,9,9,9,9,5},
  106.           {5,0,0,0,0,0,5},
  107.           {5,0,0,0,0,0,5},
  108.           {5,0,0,0,0,0,5},
  109.           {5,0,0,0,0,0,13},
  110.           {13,0,0,0,0,0,13},
  111.           {13,0,0,0,0,0,13},
  112.           {13,13,13,13,13,13,13}},
  113.  
  114. {{0,0,0,0,0,0,0},
  115.  {0,0,0,0,0,0,0},
  116.  {0,0,0,0,0,0,0},
  117.  {13,10,10,10,10,10,13},
  118.  {10,0,0,0,0,0,10},
  119.  {10,0,0,0,0,0,10},
  120.  {10,0,0,0,0,0,10},
  121.  {13,9,9,9,9,9,13},
  122.  {0,0,0,0,0,0,0},
  123.  {0,0,0,0,0,0,0},
  124.  {1,0,0,0,0,0,1},
  125.  {0,0,0,0,0,0,0},
  126.  {0,0,0,0,0,0,0},
  127.  {0,0,0,0,0,0,0},
  128.  {0,0,0,0,0,0,0}},
  129.  
  130. {{0,0,0,0,0,0,0},
  131.  {0,0,0,0,0,0,0},
  132.  {0,0,0,0,0,0,0},
  133.  {0,0,0,0,0,0,0},
  134.  {13,10,10,10,10,10,13},
  135.  {10,0,0,0,0,0,10},
  136.  {10,0,0,0,0,0,10},
  137.  {13,9,9,9,9,9,13},
  138.  {0,0,0,0,0,0,0},
  139.  {1,0,0,0,0,0,1},
  140.  {0,0,0,0,0,0,0},
  141.  {0,0,0,0,0,0,0},
  142.  {0,0,0,0,0,0,0},
  143.  {0,0,0,0,0,0,0},
  144.  {0,0,0,0,0,0,0}},
  145.  
  146. {{0,0,0,0,0,0,0},
  147.  {0,0,0,0,0,0,0},
  148.  {0,0,0,0,0,0,0},
  149.  {0,0,0,0,0,0,0},
  150.  {0,0,0,0,0,0,0},
  151.  {13,10,10,10,10,10,13},
  152.  {10,0,0,0,0,0,10},
  153.  {13,9,9,9,9,9,13},
  154.  {1,0,0,0,0,0,1},
  155.  {0,0,0,0,0,0,0},
  156.  {0,0,0,0,0,0,0},
  157.  {0,0,0,0,0,0,0},
  158.  {0,0,0,0,0,0,0},
  159.  {0,0,0,0,0,0,0},
  160.  {0,0,0,0,0,0,0}},
  161.  
  162. {{0,0,0,0,0,0,0},
  163.  {0,0,0,0,0,0,0},
  164.  {0,0,0,0,0,0,0},
  165.  {0,0,0,0,0,0,0},
  166.  {0,0,0,0,0,0,0},
  167.  {0,0,0,0,0,0,0},
  168.  {13,13,13,13,13,13,13},
  169.  {13,13,13,13,13,13,13},
  170.  {0,0,0,0,0,0,0},
  171.  {0,0,0,0,0,0,0},
  172.  {0,0,0,0,0,0,0},
  173.  {0,0,0,0,0,0,0},
  174.  {0,0,0,0,0,0,0},
  175.  {0,0,0,0,0,0,0},
  176.  {0,0,0,0,0,0,0}}}
  177.  
  178. turtle.up()
  179.  
  180. for x=1, #a do
  181.   for y=1, #a[x] do
  182.     for z=1, #a[x][y] do
  183.       iff(x,y,z)
  184.       turtle.placeDown()
  185.       turtle.forward()
  186.     end
  187.  
  188. turtle.turnRight()
  189. turtle.forward()
  190. turtle.turnRight()
  191.  
  192. for y = 1,#a[x][y] do
  193. turtle.forward()
  194. end
  195.  
  196. turtle.turnRight()
  197. turtle.turnRight()
  198. end
  199.  
  200. turtle.turnLeft()
  201. for y = 1,#a[x] do
  202. turtle.forward()
  203.  
  204. end
  205. turtle.turnRight()
  206. turtle.up()
  207. end
Tags: RTS
Advertisement
Add Comment
Please, Sign In to add comment