kk258966

platform

Aug 20th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("how Long?")
  4. a=tonumber(read())
  5. term.setCursorPos(1,3)
  6. term.clearLine()
  7. print("how Wide?")
  8. b=tonumber(read())
  9. turtle.placeDown()
  10. x=1
  11. y=0
  12. s=1
  13. print("using slot " ..s)
  14. while y<b do
  15. y=y+1
  16. while x<a do
  17. x=x+1
  18. turtle.forward()
  19. turtle.placeDown()
  20. if turtle.getItemCount(s)==0 then
  21. s=s+1
  22. print("now using slot " ..s)
  23. turtle.select(s)
  24. if turtle.getItemCount(tonumber(s))<2 then
  25. print("Fill'er Down Scotty!! and hit any button")
  26. os.pullEvent(key)
  27. end
  28. end
  29.  
  30.  
  31. end
  32. x=1
  33. if y~=b then
  34. q=tonumber(y)
  35. if q%2==1 then
  36. turtle.turnRight()
  37. turtle.forward()
  38. turtle.placeDown()
  39. turtle.turnRight()
  40. elseif q%2==0 then
  41. turtle.turnLeft()
  42. turtle.forward()
  43. turtle.placeDown()
  44. turtle.turnLeft()
  45. end
  46. end
  47. end
  48. ry=1
  49. rx=1
  50. turtle.turnLeft()
  51. turtle.turnLeft()
  52. if b%2==1 then
  53. turtle.turnRight()
  54. while ry<b do --} } } }
  55. turtle.forward() --{ { { {
  56. ry=ry+1 --} } } }
  57. end --{ { { {
  58. end
  59. turtle.turnLeft()
  60. while rx<a do
  61. turtle.forward()
  62. rx=rx+1
  63. end
  64. term.clear()
  65. term.setCursorPos(1,1)
  66. print("done")
Advertisement
Add Comment
Please, Sign In to add comment