Guest User

wlager

a guest
Apr 9th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.80 KB | None | 0 0
  1. -- Automatische Ein und Aus-Lagerung 0.1 CC1.31 by Willfrieden 09.04.12
  2.  
  3.  
  4.  
  5.  
  6. msg = print("Automatische Ein und Aus-Lagerung 0.1 CC1.31 by Willfrieden 09.04.12")
  7. redstone.setBundledOutput("top", colors.black, true)
  8.  
  9. sleep(3)
  10. term.clear()
  11. term.setCursorPos(1,1)
  12.           print("---------------- Bestell menu -------------------")
  13.           print("|                                               |")
  14.           print("| Redstone          [r] | Diamond      [d]      |")
  15.           print("| Coal              [c] | Gold         [g]      |")
  16.           print("| Larpes            [l] | Iron         [i]      |")
  17.           print("| Copper           [cr] | Tin          [t]      |")
  18.           print("| RE Iron          [ri] | Glas         [g]      |")
  19.           print("| RF Glas          [rg] | RF Stone     [rs]     |")
  20.           print("| Sand              [s] | Wood         [w]      |")
  21.           print("| Gras             [gs] | Profit       [p]      |")             
  22.           print("|                                               |")
  23.           print("-------------------------------------------------")
  24.          
  25.  redstone.setBundledOutput("top", 0)         
  26.  
  27. t = io.read()
  28.  
  29.           if t == "r" then
  30.          
  31.             print("Gewünschte Menge ?: ")
  32.            
  33.           input = io.read()
  34.           a = input * 5
  35.           b = input
  36.           print(b, " Redstone werden Geliefert.")
  37.           redstone.setBundledOutput("back",  colors.red)
  38.           sleep(a)
  39.           redstone.setBundledOutput("back", 0)
  40.           sleep(1)
  41.  
  42.        elseif t == "c" then
  43.        
  44.      
  45.             print("Gewünschte Menge ?: ")
  46.            
  47.           input = io.read()
  48.           a = input * 5
  49.           b = input
  50.  
  51.           print(b, " Kohle wird Geliefert.")
  52.           redstone.setBundledOutput("back", colors.green)
  53.           sleep(a)
  54.           redstone.setBundledOutput("back", 0)
  55.           sleep(1)
  56.          
  57.          
  58.          
  59.         elseif t == "l" then
  60.          
  61.              
  62.             print("Gewünschte Menge ?: ")
  63.            
  64.           input = io.read()
  65.         a = input * 5
  66.         b = input
  67.  
  68.        
  69.           print(b, " Larpes Lazuli wird Geliefert.")
  70.           redstone.setBundledOutput("back", colors.brown)
  71.           sleep(a)
  72.           redstone.setBundledOutput("back", 0)
  73.           sleep(1)
  74.          
  75.            elseif t == "cr" then
  76.          
  77.              
  78.             print("Gewünschte Menge ?: ")
  79.            
  80.           input = io.read()
  81.          
  82.         a = input * 5
  83.         b = input
  84.        
  85.           print(b, " Kupfer wird Geliefert.")
  86.           redstone.setBundledOutput("back", colors.blue)
  87.           sleep(a)
  88.           redstone.setBundledOutput("back", 0)
  89.           sleep(1)
  90.          
  91.          
  92.           elseif t == "ri" then
  93.          
  94.              
  95.             print("Gewünschte Menge ?: ")
  96.            
  97.           input = io.read()
  98.         a = input * 5
  99.         b = input
  100.        
  101.           print(b, " Re Eisen wird Geliefert")
  102.           redstone.setBundledOutput("back",  colors.purple)
  103.           sleep(a)
  104.           redstone.setBundledOutput("back", 0)
  105.           sleep(1)
  106.          
  107.          
  108.           elseif t == "rg" then
  109.          
  110.              
  111.             print("Gewünschte Menge ?: ")
  112.            
  113.           input = io.read()
  114.         a = input * 5
  115.         b = input
  116.        
  117.           print(b, " Rf Glass wird Geliefert.")
  118.           redstone.setBundledOutput("back", colors.cyan)
  119.           sleep(a)
  120.           redstone.setBundledOutput("back", 0)
  121.           sleep(1)
  122.          
  123.          
  124.           elseif t == "s" then
  125.          
  126.              
  127.             print("Gewünschte Menge ?: ")
  128.            
  129.           input = io.read()
  130.         a = input * 5
  131.         b = input
  132.        
  133.           print(b, " Sand wird Geliefert.")
  134.           redstone.setBundledOutput("back", colors.lightGray)
  135.           sleep(a)
  136.           redstone.setBundledOutput("back", 0)
  137.           sleep(1)
  138.          
  139.          
  140.           elseif t == "gs" then
  141.          
  142.              
  143.             print("Gewünschte Menge ?: ")
  144.            
  145.           input = io.read()
  146.         a = input * 5
  147.         b = input
  148.        
  149.           print(b, " Gras Block wird Geliefert.")
  150.           redstone.setBundledOutput("back", colors.gray)
  151.           sleep(a)
  152.           redstone.setBundledOutput("back", 0)
  153.           sleep(1)
  154.          
  155.          
  156.           elseif t == "d" then
  157.          
  158.              
  159.             print("Gewünschte Menge ?: ")
  160.            
  161.           input = io.read()
  162.         a = input * 5
  163.         b = input
  164.        
  165.           print(b, " Diamant wird Geliefert")
  166.           redstone.setBundledOutput("back", colors.pink)
  167.           sleep(a)
  168.           redstone.setBundledOutput("back", 0)
  169.           sleep(1)
  170.          
  171.           elseif t == "g" then
  172.          
  173.              
  174.             print("Gewünschte Menge ?: ")
  175.            
  176.           input = io.read()
  177.         a = input * 5
  178.         b = input
  179.        
  180.           print(b, " Gold wird Geliefert.")
  181.           redstone.setBundledOutput("back", colors.lime)
  182.           sleep(a)
  183.           redstone.setBundledOutput("back", 0)
  184.           sleep(1)
  185.          
  186.          
  187.          elseif t == "i" then
  188.          
  189.              
  190.             print("Gewünschte Menge ?: ")
  191.            
  192.           input = io.read()
  193.         a = input * 5
  194.         b = input
  195.        
  196.           print(b, " Eisen wird Geliefert.")
  197.           redstone.setBundledOutput("back", colors.yellow)
  198.           sleep(a)
  199.           redstone.setBundledOutput("back", 0)
  200.           sleep(1)
  201.          
  202.          
  203.           elseif t == "t" then
  204.          
  205.              
  206.             print("Gewünschte Menge ?: ")
  207.            
  208.           input = io.read()
  209.         a = input * 5
  210.         b = input
  211.        
  212.           print(b, " Zin wird Geliefert")
  213.           redstone.setBundledOutput("back", colors.lightBlue)
  214.           sleep(a)
  215.           redstone.setBundledOutput("back", 0)
  216.           sleep(1)
  217.          
  218.          
  219.           elseif t == "gl" then
  220.          
  221.              
  222.             print("Gewünschte Menge ?: ")
  223.            
  224.           input = io.read()
  225.         a = input * 5
  226.         b = input
  227.        
  228.           print(b, " Glass wird Geliefert")
  229.           redstone.setBundledOutput("back", colors.magenta)
  230.           sleep(a)
  231.           redstone.setBundledOutput("back", 0)
  232.           sleep(1)
  233.          
  234.          
  235.           elseif t == "rs" then
  236.          
  237.              
  238.             print("Gewünschte Menge ?: ")
  239.            
  240.           input = io.read()
  241.         a = input * 5
  242.         b = input
  243.        
  244.           print(b, " Rf Stein wird Geliefert.")
  245.           redstone.setBundledOutput("back", colors.orange)
  246.           sleep(a)
  247.           redstone.setBundledOutput("back", 0)
  248.           sleep(1)
  249.          
  250.          
  251.           elseif t == "w" then
  252.          
  253.              
  254.             print("Gewünschte Menge ?: ")
  255.            
  256.           input = io.read()
  257.         a = input * 5
  258.         b = input
  259.        
  260.           print(b, " Holz wird Geliefert.")
  261.           redstone.setBundledOutput("back", colors.white)
  262.           sleep(a)
  263.           redstone.setBundledOutput("back", 0)
  264.           sleep(1)
  265.          
  266.           elseif t == "p" then
  267.          
  268.                                                                                      
  269.           print("---------------- Bestell menu -------------------")
  270.           print("|                                               |")
  271.           print("| Redstone          [r] | Diamond      [d]      |")
  272.           print("| Coal              [c] | Gold         [g]      |")
  273.           print("| Larpes            [l] | Iron         [i]      |")
  274.           print("| Copper           [cr] | Tin          [t]      |")
  275.           print("| RE Iron          [ri] | Glas         [g]      |")
  276.           print("| RF Glas          [rg] | RF Stone     [rs]     |")
  277.           print("| Sand              [s] | Wood         [w]      |")
  278.           print("| Gras             [gs] | Profit       [p]      |")             
  279.           print("|                                               |")
  280.           print("-------------------------------------------------")
  281.          
  282.          
  283.  
  284.          
  285.           else
  286.              print("DU hast was falsches eingegeben.")
  287.    
  288.     end
Advertisement
Add Comment
Please, Sign In to add comment