Advertisement
Maffin1231

Untitled

Mar 3rd, 2024 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | Gaming | 0 0
  1. function iff (z)
  2. if a[z]==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,2,2,2,1,1,1,2,2,2,1 ,
  17.    1,2,1,1,2,2,2,1,1,2,1 ,
  18.    1,1,1,2,1,1,1,2,1,1,1 ,
  19.    1,1,1,2,2,2,2,2,1,1,1,}
  20. z=0
  21.  
  22. turtle.up()
  23. for x=1,2  do
  24. for y = 1,11 do
  25. turtle.placeDown()
  26. z=z+1
  27. iff(z)
  28. turtle.placeDown()
  29. turtle.forward()
  30. end
  31. turtle.turnRight()
  32. turtle.forward()
  33. turtle.turnRight()
  34. for y = 1,11 do
  35. z=z+1 iff(z)
  36. turtle.placeDown()
  37. turtle.forward()
  38. end
  39. turtle.turnLeft()
  40. turtle.forward()
  41. turtle.turnLeft()
  42. end
Tags: RTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement