Advertisement
Ganeesya

qmark

Mar 29th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. -- solt1:under block
  2. -- solt2:marker
  3.  
  4. -- 1 block 2 mark
  5. function wing(block,mark)
  6. for i = 0, 61 do
  7. repeat
  8. turtle.dig()
  9. until turtle.forward()
  10. end
  11. repeat
  12. turtle.dig()
  13. until turtle.forward()
  14. turtle.select(block)
  15. turtle.placeDown()
  16. turtle.back()
  17. turtle.select(mark)
  18. turtle.place()
  19. for i = 0, 61 do
  20. turtle.back()
  21. end
  22. end
  23.  
  24. local block = 0
  25. local mark = 0
  26.  
  27. for i = 1, 16 do
  28. local ans = turtle.getItemDetail()
  29. if ans then
  30. if ans.name == "BuildCraft:Builders:markerBlock" then
  31. mark = i
  32. else
  33. block = i
  34. end
  35. end
  36. end
  37.  
  38. if block == 0 or mark == 0 then
  39. write("need slot 1: Block\ slot 2: marker")
  40. block = 1
  41. mark = 2
  42. end
  43.  
  44. wing(block,mark)
  45. turtle.turnRight()
  46. wing(block,mark)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement