k_goos

PlatformBuilder

Jan 24th, 2013
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. end
  25. end
  26. x=1
  27. q=tonumber(y)
  28. if q%2==1 then
  29. turtle.turnRight()
  30. turtle.forward()
  31. turtle.placeDown()
  32. turtle.turnRight()
  33. elseif q%2==0 then
  34. turtle.turnLeft()
  35. turtle.forward()
  36. turtle.placeDown()
  37. turtle.turnLeft()
  38. end
  39. end
  40. term.clear()
  41. term.setCursorPos(1,1)
  42. print("done")
RAW Paste Data Copied