Advertisement
sasha311216

opi

Jun 8th, 2025 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | Gaming | 0 0
  1. function iff (x,y)
  2. if a[x][y]==1 then
  3. turtle.select(1)
  4. elseif a[z]==2 then
  5. turtle.select(2)
  6. elseif a[z]==3 then
  7. turtle.select(3)
  8. elseif a[z]==4 then
  9. turtle.select(4)
  10. elseif a[z]==5 then
  11. turtle.select(5)
  12. elseif a[z]==6 then
  13. turtle.select(6)
  14. end
  15. end
  16. a={1,1,1,1,1,2,1,1,1,1,1 ,
  17.    1,1,1,1,2,2,2,1,1,1,1 ,
  18.    1,1,1,3,3,3,3,3,1,1,1 ,
  19.    1,1,4,4,4,4,4,4,4,1,1}
  20. z=0
  21. turtle.up()
  22. for x=1,2 do
  23. for y = 1,11 do
  24. turtle.forward()
  25. iffx,y)
  26. turtle.placeDown()
  27. turtle.forward()
  28. end
  29. turtle.turnRight()
  30. turtle.forward()
  31. turtle.turnRight()
  32. turtle.forward()
  33. for x = 1,10 do
  34. for y = 1,11 do
  35. turtle.forward()
  36. iff(x,y)
  37. turtle.placeDown()
  38. turtle.forward()
  39. end
  40. turtle.turnLeft()
  41. turtle.forward()
  42. turtle.turnLeft()
  43. turtle.forward()
  44. end
  45. end
Tags: RTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement