Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. ---
  2. Variabeln
  3. ---
  4. curslot = 2
  5.  
  6. function turnright()
  7. turtle.turnRight()
  8. turtle.forward()
  9. turtle.turnRight()
  10. end
  11.  
  12. function turnleft()
  13. turtle.turnLeft()
  14. turtle.forward()
  15. turtle.turnLeft()
  16. end
  17.  
  18. function checkblockcount()
  19. if turtle.getItemCount(curslot) == 0 then
  20. selnextslot()
  21. end
  22. end
  23.  
  24. function selnextslot()
  25. curslot = curslot + 1
  26. if curslot > 16 then
  27. print("Out of blocks, terminating")
  28. error()
  29. end
  30. turtle.select(curslot)
  31. end
  32.  
  33. function place()
  34. checkblockcount()
  35. turtle.placeDown()
  36. turtle.forward()
  37. end
  38.  
  39.  
  40. ----------
  41.  
  42. for i=1, 3 do
  43. place()
  44. end
  45. turnright()
  46. for i=1, 3 do
  47. place()
  48. end
  49. turnleft()
  50. for i=1, 3 do
  51. place()
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement