Advertisement
jBlume

Start&Floor Test

May 5th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Start=
  2. turtle.up()
  3. turtle.placeDown()
  4. for t=1,4 do
  5. for w=1,11 do
  6. turtle.forward()
  7. turtle.placeDown()
  8. end
  9. end
  10. turtle.turnRight()
  11. turtle.forward()
  12. turtle.down()
  13.  
  14. Floor=
  15. r=1
  16. turtle.select(1)
  17. while true do
  18. turtle.forward()
  19. turtle.turnRight()
  20. turtle.turnRight()
  21. turtle.place()
  22. turtle.turnLeft()
  23. turtle.turnLeft()
  24. if r<16 and turtle.getItemCount(r)<1 then
  25. r=r+1
  26. turtle.select(r)
  27. end
  28. if r==16 and turtle.getItemCount(r)<1 then
  29. for p=1,100000 do
  30. print “I am out of Items.”
  31. end
  32. end
  33. if turtle.detect() then
  34. turtle.turnRight()
  35. if turtle.detect() then
  36. turtle.turnRight()
  37. if turtle.detect() then
  38. turtle.turnRight()
  39. if turtle.detect() then
  40. turtle.turnRight()
  41. if turtle.detect() then
  42. turtle.turnRight()
  43. if turtle.detect() then
  44. turtle.up()
  45. turtle.placeDown()
  46. for p=1,100000 do
  47. print “The floor has been made.”
  48. end
  49. end
  50. end
  51. end
  52. end
  53. end
  54. end
  55. end
  56.  
  57. Start .. Floor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement