Advertisement
Birog

Lampen

Mar 12th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.34 KB | None | 0 0
  1. print("Slot1 = Polished Stone Cover 750:16")
  2. print("Slot2 = Basalt Jacketed Wire 750:16433")
  3. print("Slot3 = Silver Block Slab 750:4418")
  4. print("Slot4 = Hollow Basalt Panel 750:6449")
  5. print("Slot5 = Basalt Cover 750:49")
  6. print("Slot6 = White Fixture 768")
  7. print("Slot7 = Glass Cover 750:7")
  8. print()
  9. write("Wie lang ist der Buergersteig? : ")
  10. ll = io.read()
  11. ll = ll +0
  12. print()
  13. write("Welchen Abstand soll zwischen den Lampen sein? : ")
  14. ab= io.read()
  15. ab = ab +0
  16. print()
  17. cc = ll/ab
  18. print("Es werden "..cc.." Lampen aufgebaut mit einem Abstand von "..ab.." auf einer Laenge von "..ll)
  19.  
  20. print("lampe bauen")
  21. for a=1,ab do
  22.  
  23.  
  24.  
  25. io.read()
  26.  
  27.  
  28. for n=1,5 do
  29. turtle.up()
  30. end
  31. turtle.forward()
  32. turtle.select(3)
  33. turtle.placeUp()
  34. turtle.back()
  35. turtle.back()
  36. turtle.placeUp()
  37. turtle.forward()
  38. turtle.select(5)
  39. turtle.placeUp()
  40. turtle.down()
  41. turtle.forward()
  42. turtle.select(6)
  43. turtle.placeUp()
  44. turtle.back()
  45. turtle.back()
  46. turtle.placeUp()
  47. turtle.forward()
  48. turtle.select(4)
  49. turtle.placeUp()
  50. turtle.select(2)
  51. turtle.placeUp()
  52. turtle.down()
  53. turtle.forward()
  54. turtle.select(7)
  55. turtle.placeUp()
  56. turtle.back()
  57. turtle.back()
  58. turtle.placeUp()
  59. turtle.forward()
  60. turtle.select(2)
  61. turtle.placeUp()
  62. turtle.down()
  63. turtle.placeUp()
  64. turtle.down()
  65. turtle.placeUp()
  66. turtle.down()
  67. turtle.placeUp()
  68. turtle.placeDown()
  69. turtle.back()
  70. turtle.place()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement