Matveyka16

Untitled

Oct 16th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | Gaming | 0 0
  1. function iff (x,y)
  2. if a[x][y]==1 then
  3. turtle.select(1)
  4. elseif a[x][y]==2 then
  5. turtle.select(2)
  6. elseif a[x][y]==3 then
  7. turtle.select(3)
  8. elseif a[x][y]==4 then
  9. turtle.select(4)
  10. elseif a[x][y]==5
  11. turtle.select(5)
  12. elseif a[x][y]==6 then
  13. turtle.select(6)
  14. end
  15. end
  16. a={{1,1,1,2,2,2,2,2,1,1,1} ,
  17. {2,2,2,2,2,2,2,2,2,2,2} ,
  18. {1,1,2,1,3,2,3,1,2,1,1} ,
  19. {1,1,1,2,2,2,2,2,1,1,1} ,
  20. {1,1,1,2,2,2,2,2,1,1,1} ,
  21. {1,2,4,4,5,5,5,4,4,
Tags: lua
Advertisement
Add Comment
Please, Sign In to add comment