Advertisement
Guest User

startup

a guest
May 25th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.96 KB | None | 0 0
  1.     term.setBackgroundColor(32768)
  2.  
  3.     term.clear()
  4.     local     m = peripheral.wrap("back")
  5.     local     mx, my = m.getSize()    
  6.               m.setTextScale(1)          
  7.               term.setTextColor(1)
  8.     term.setCursorPos(1,1)
  9.       print("[O]---------Zentral-Rechner---------[x]")
  10.  
  11. while true do
  12. event, side, x, y = os.pullEvent()
  13.  if event == "monitor_touch" then
  14.  if x == 2 and y == 1 then
  15.     term.setCursorPos(1,3)
  16.     term.setTextColor(1)
  17.     print("[O]   Programmauswahl")
  18.      
  19.      
  20. while true do
  21. event, side, x, y = os.pullEvent()
  22.  if event == "monitor_touch" then
  23.  if x == 2 and y == 3 then
  24.      term.setCursorPos(1,5)
  25.      term.setTextColor(2)
  26.      print("Ghast-Spawner")
  27.      term.setCursorPos(20,5)
  28.      term.setTextColor(8192)
  29.        print("[O]")
  30.      term.setCursorPos(25,5)
  31.      term.setTextColor(16384)
  32.        print("[X]")
  33.        
  34.        
  35.        
  36.        
  37.        
  38.      term.setCursorPos(1,6)
  39.      term.setTextColor(2)
  40.      print("Wither-Spawner")
  41.      term.setCursorPos(20,6)
  42.      term.setTextColor(8192)
  43.        print("[O]")
  44.      term.setCursorPos(25,6)
  45.      term.setTextColor(16384)
  46.        print("[X]")
  47.        
  48.        
  49.        
  50.        
  51.        
  52.      term.setCursorPos(1,7)
  53.      term.setTextColor(2)
  54.      print("Pigman-Spawner")
  55.      term.setCursorPos(20,7)
  56.      term.setTextColor(8192)
  57.        print("[O]")
  58.      term.setCursorPos(25,7)
  59.      term.setTextColor(16384)
  60.        print("[X]")
  61.        
  62.        
  63.        
  64.        
  65.        
  66.        term.setCursorPos(1,8)
  67.        term.setTextColor(2)
  68.        print("Witch-Spawner")
  69.      term.setCursorPos(20,8)
  70.      term.setTextColor(8192)
  71.        print("[O]")
  72.      term.setCursorPos(25,8)
  73.      term.setTextColor(16384)
  74.        print("[X]")
  75.        
  76.        
  77.        
  78.        
  79.        
  80.        term.setCursorPos(1,9)
  81.        term.setTextColor(2)
  82.        print("Endermann-Spawner")
  83.      term.setCursorPos(20,9)
  84.      term.setTextColor(8192)
  85.        print("[O]")
  86.      term.setCursorPos(25,9)
  87.      term.setTextColor(16384)
  88.        print("[X]")
  89.        
  90.        
  91.        
  92.        
  93.        
  94.  
  95.        
  96.        
  97. while true do
  98. event, side, x, y = os.pullEvent()
  99.  if event == "monitor_touch" then
  100.  if x == 21 and y == 5 then
  101.      term.setCursorPos(1,13)
  102.      term.setTextColor(8192)
  103.      print("Witch-Spawner ist Aktiv   ")
  104.           rs.setOutput("right", true)
  105.  elseif event == "monitor_touch" then
  106.  if x == 26 and y == 5 then
  107.      term.setCursorPos(1,13)
  108.      term.setTextColor(16384)
  109.      print("Witch-Spawner ist Inaktiv")
  110.           rs.setOutput("right", false)
  111.          
  112.  elseif event == "monitor_touch" then
  113.  if x == 21 and y == 6 then
  114.      term.setCursorPos(1,14)
  115.      term.setTextColor(8192)
  116.      print("Ghast-Spawner ist Aktiv   ")
  117.          rs.setOutput("left", true)
  118.  elseif event == "monitor_touch" then
  119.  if x == 26 and y == 6 then
  120.      term.setCursorPos(1,14)
  121.      term.setTextColor(16384)
  122.      print("Ghast-Spawner ist Inaktiv")
  123.          rs.setOutput("left", false)
  124.  
  125.  
  126.  elseif event == "monitor_touch" then
  127.  if x == 21 and y == 7 then
  128.      term.setCursorPos(1,15)
  129.      term.setTextColor(8192)
  130.      print("Wither-Spawner ist Aktiv   ")
  131.      rs.setOutput("top", true)
  132.  elseif event == "monitor_touch" then
  133.  if x == 26 and y == 7 then
  134.      term.setCursorPos(1,15)
  135.      term.setTextColor(16384)
  136.      print("Wither-Spawner ist Inaktiv")
  137.          rs.setOutput("top", false)        
  138.          
  139.          
  140.          
  141.          
  142.          
  143.          
  144.           elseif event == "monitor_touch" then
  145.           if x == 21 and y == 9 then
  146.  term.setCursorPos(1,16)
  147.      term.setTextColor(8192)
  148.      print("Endermann-Spawner ist Aktiv   ")
  149.      rs.setOutput("bottom", true)
  150.  elseif event == "monitor_touch" then
  151.  if x == 26 and y == 9 then
  152.  term.setCursorPos(1,16)
  153.      term.setTextColor(16384)
  154.      print("Endermann-Spawner ist Inaktiv")
  155.      rs.setOutput("bottom", false)  
  156.    
  157.    
  158.      elseif event == "monitor_touch" then
  159.      if x == 21 and y == 8 then
  160.  term.setCursorPos(1,17)
  161.      term.setTextColor(8192)
  162.      print("Pigman-Spawner ist Aktiv   ")
  163.      rs.setOutput("front", true)
  164.  elseif event == "monitor_touch" then
  165.  if x == 26 and y == 8 then
  166.  term.setCursorPos(1,17)
  167.      term.setTextColor(16384)
  168.      print("Pigman-Spawner ist Inaktiv")
  169.      rs.setOutput("front", false)        
  170.                
  171.          
  172.          
  173.  elseif event == "monitor_touch" then
  174.  if x == 38 and y == 1 then
  175.          rs.setOutput("right", false)
  176.          rs.setOutput("left", false)
  177.          rs.setOutput("top", false)
  178.          rs.setoutput("bottom", false)
  179.          rs.setOutput("front", false)
  180.          
  181.             sleep(0.1)
  182.              shell.run("clear")
  183.              shell.run("startup")
  184.        
  185.        
  186.      
  187.      
  188.        end
  189.        end
  190.        end
  191.        end
  192.        end
  193.        end
  194.        end
  195.        end
  196.        end
  197.        end
  198.        end
  199.        
  200.        end
  201.        end
  202.        end
  203.        end
  204.        
  205.        end
  206.        end
  207.        end
  208.        end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement