Guest User

mlager2

a guest
Apr 9th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.34 KB | None | 0 0
  1.  
  2.  
  3. while true do
  4. id = 181
  5. rednet.open("top")
  6. id, message = rednet.receive()
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. if message == "1" then
  14.  
  15.  
  16.  
  17. print("Automatische Ein und Aus-Lagerung 0.1 CC1.31 by Willfrieden 09.04.12")
  18. sleep(3)
  19. term.clear()
  20. term.setCursorPos(1,1)
  21.  
  22.           print("---------------- Bestell menu -------------------")
  23.           print("|                                               |")
  24.           print("| Redstone          [r] | Diamond      [d]      |")
  25.           print("| Coal              [c] | Gold         [g]      |")
  26.           print("| Larpes            [l] | Iron         [i]      |")
  27.           print("| Copper           [cr] | Tin          [t]      |")
  28.           print("| RE Iron          [ri] | Glas         [g]      |")
  29.           print("| RF Glas          [rg] | RF Stone     [rs]     |")
  30.           print("| Sand              [s] | Wood         [w]      |")
  31.           print("| Gras             [gs] | Profit       [p]      |")             
  32.           print("|                                               |")
  33.           print("-------------------------------------------------")
  34.          
  35.          
  36. id, message = rednet.receive()
  37.  
  38.           print(message)
  39.  
  40.          
  41.     id, message = rednet.receive()     
  42.         print(message, " Redstone werden Geliefert.")
  43. sleep(5)
  44. term.clear()
  45. term.setCursorPos(1,1)
  46.  
  47.  
  48.  
  49. else
  50. print("Warte auf Input")
  51. sleep(5)
  52. term.clear()
  53. term.setCursorPos(1,1)
  54. end
  55. end
Advertisement
Add Comment
Please, Sign In to add comment