Maffin1231

Untitled

Sep 8th, 2025
55
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | Gaming | 1 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.  
  20. egdthyjgyjufkyukuykili95l2ui6k25uk9y
  21.  
  22. for x=1, #a do
  23.   for y=1, #a[x] do
  24.     for z=1, #a[x][y] do
  25.       iff(x,y,z)
  26.       turtle.placeDown()
  27.       turtle.forward()
  28.     end
  29.   end
  30.  
  31.   turtle.turnRight()
  32.   turtle.forward()
  33.   turtle.turnRight()
  34.  
  35.   for y = 1,#a[x][y] do
  36.     turtle.forward()
  37.   end
  38.  
  39.   turtle.turnRight()
  40.   turtle.turnRight()
  41.  
  42.   turtle.turnLeft()
  43.   for y = 1,#a[x] do
  44.     turtle.forward()
  45.   end
  46.  
  47.   turtle.turnRight()
  48.   turtle.up()
  49. end
Tags: RTS
Advertisement
Add Comment
Please, Sign In to add comment