Himitsu_Chan

Untitled

Mar 9th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Variables
  2.  
  3. CMO = 0 -- Counter Metal Input
  4. CES = 0 -- Counter Empty Smeltery
  5.  
  6. -- Button Variable for showing button list!
  7. CML = 0 -- Counter Metal List
  8. CAL = 0 -- Counter Alloy List
  9. CLL = 0 -- Counter Liquid List
  10. CBL = 0 -- Counter Block List
  11. CMML = 0 -- Counter Menu List
  12. -- \Button Variable for showing button list!
  13.  
  14. -- Filling Variables
  15. CFM = 0 -- Counter Filling Metal
  16. CFA = 0 -- Counter Filling Alloy
  17. CFL = 0 -- Counter Filling Liquid
  18. CFB = 0 -- Counter Filling Block
  19.  
  20. -- MouseWidth/Height Variables
  21. mouseWidth = 0  -- mouseWidth Variable
  22. mouseHeight = 0 -- mouseHeight Variable
  23. -- \MouseWidth/Height Variables
  24.  
  25. -- \Variables
  26. ----------------------------------------------------------------------------------------------
  27. -- Computercraft Monitor wrapping
  28.  
  29. monitor = peripheral.wrap("top") -- insert Monitor position here
  30.  
  31. -- \Computercraft Monitor wrapping
  32. ----------------------------------------------------------------------------------------------
  33. -- Monitor Clearing + Background color change and cursor Positioning
  34.  
  35. monitor.setBackgroundColour((colors.black)) -- Return to standart color BEFORE clearing the screen
  36. monitor.clear() -- Clear Monitor
  37. monitor.setCursorPos(1,1) -- Set Cursor to Position 1,1
  38.  
  39. -- \Monitor Clearing + Background color change and cursor Positioning
  40. ----------------------------------------------------------------------------------------------
  41. -- Debug text for Display Size
  42.  
  43. w,h=monitor.getSize() -- set w to Width of the monitor and h to Height in Pixels
  44.  
  45. print(w) -- Print width of monitor
  46. print(h) -- print Height of monitor
  47.  
  48. -- \Debug text for Display Size
  49. ----------------------------------------------------------------------------------------------
  50. -- Create Buttons for Metals, Alloys etc.
  51.  
  52. function listMenu() -- Create function
  53.  
  54.     monitor.clear()
  55.     monitor.setBackgroundColour((colours.lime)) -- Set monitor Background Color for Button Creation
  56.    
  57.     monitor.setCursorPos(2,2) -- Set Cursor Position to 2,2
  58.     monitor.write("Metals") -- Write "Metals" at Current Cursor Position
  59.    
  60.     monitor.setCursorPos(2,4)
  61.     monitor.write("Alloys")
  62.    
  63.     monitor.setCursorPos(2,6)
  64.     monitor.write("Liquids")
  65.    
  66.     monitor.setCursorPos(2,8)
  67.     monitor.write("Blocks")
  68.    
  69.     monitor.setBackgroundColour((colors.black)) -- Reset Monitor Background Color back to black
  70.  
  71.     CML = 0
  72.     CAL = 0
  73.     CLL = 0
  74.     CBL = 0
  75.    
  76. end -- End Function
  77.  
  78. listMenu()
  79. Stop()
  80. -- \Create Buttons for Metals, Alloys etc.
  81. -----------------------------------------------------------------------------------------------
  82. -- Functions for right clicking on monitor and what it is supposed to do.
  83.  
  84. function listMetals() -- Metal listing function.
  85.  
  86.         monitor.clear() -- Clear Monitor
  87.        
  88.         monitor.setBackgroundColour((colours.lime)) -- Set Monitor Background color to Lime for button creation
  89.        
  90.         monitor.setCursorPos(2,2)------------------- row 1
  91.         monitor.write("Back")
  92.        
  93.         monitor.setCursorPos(2,4)
  94.         monitor.write("Cobalt")
  95.        
  96.         monitor.setCursorPos(2,6)
  97.         monitor.write("Gold")
  98.  
  99.         monitor.setCursorPos(2,8)
  100.         monitor.write("Coal")
  101.        
  102.         monitor.setCursorPos(2,10)
  103.         monitor.write("Unstable")
  104.  
  105.         monitor.setCursorPos(2,12)
  106.         monitor.write("Silver")
  107.  
  108.         monitor.setCursorPos(2,14)
  109.         monitor.write("Yellorium")
  110.  
  111.         monitor.setCursorPos(15,2)------------------- row 2
  112.         monitor.write("Aluminium")
  113.        
  114.         monitor.setCursorPos(15,4)
  115.         monitor.write("Copper")
  116.        
  117.         monitor.setCursorPos(15,6)
  118.         monitor.write("Iron")
  119.  
  120.         monitor.setCursorPos(15,8)
  121.         monitor.write("Emerald")
  122.        
  123.         monitor.setCursorPos(15,10)
  124.         monitor.write("Nickel")
  125.  
  126.         monitor.setCursorPos(15,12)
  127.         monitor.write("Steel")
  128.  
  129.         --monitor.setCursorPos(15,14)
  130.         --monitor.write("")
  131.        
  132.         monitor.setCursorPos(28,2)------------------ row 3
  133.         monitor.write("Ardite")
  134.        
  135.         monitor.setCursorPos(28,4)
  136.         monitor.write("Dark Iron")
  137.        
  138.         monitor.setCursorPos(28,6)
  139.         monitor.write("Lead")
  140.  
  141.         monitor.setCursorPos(28,8)
  142.         monitor.write("Mana Metal")
  143.        
  144.         monitor.setCursorPos(28,10)
  145.         monitor.write("Res Ender")
  146.  
  147.         monitor.setCursorPos(28,12)
  148.         monitor.write("Tin")
  149.  
  150.         --monitor.setCursorPos(28,14)
  151.         --monitor.write("")
  152.        
  153.         monitor.setCursorPos(41,2)------------------ row 4
  154.         monitor.write("Bedrockium")
  155.        
  156.         monitor.setCursorPos(41,4)
  157.         monitor.write("Des Redstone")
  158.        
  159.         monitor.setCursorPos(41,6)
  160.         monitor.write("Redstone")
  161.  
  162.         monitor.setCursorPos(41,8)
  163.         monitor.write("Mithril")
  164.        
  165.         monitor.setCursorPos(41,10)
  166.         monitor.write("Shiny")
  167.  
  168.         monitor.setCursorPos(41,12)
  169.         monitor.write("Uranium")
  170.  
  171.         monitor.setCursorPos(41,14)
  172.         monitor.write("Stop")
  173.        
  174.         monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
  175.        
  176.         CML = 1 -- Counter Metal List is now 1
  177.         CFM = 1 -- Counter Filling Metal is now 1
  178.        
  179. end -- Ends the function
  180.  
  181. function listAlloys() -- Alloy listing function.
  182.  
  183.         monitor.clear() -- Clear Monitor
  184.        
  185.         monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to lime for button creation
  186.        
  187.         monitor.setCursorPos(2,4)------------------- row 1
  188.         monitor.write("Back")
  189.        
  190.         monitor.setCursorPos(2,6)
  191.         monitor.write("Red Alloy")
  192.        
  193.         monitor.setCursorPos(2,8)
  194.         monitor.write("Lumium")
  195.  
  196.         --monitor.setCursorPos(2,10)
  197.         --monitor.write("")
  198.        
  199.         --monitor.setCursorPos(2,12)
  200.         --monitor.write("")
  201.  
  202.         --monitor.setCursorPos(2,14)
  203.         --monitor.write("")
  204.  
  205.         --monitor.setCursorPos(2,16)
  206.         --monitor.write("")
  207.  
  208.         monitor.setCursorPos(15,4)------------------- row 2
  209.         monitor.write("Alum Brass")
  210.        
  211.         monitor.setCursorPos(15,6)
  212.         monitor.write("Electrum")
  213.        
  214.         monitor.setCursorPos(15,8)
  215.         monitor.write("Manyullyn")
  216.  
  217.         --monitor.setCursorPos(15,10)
  218.         --monitor.write("")
  219.        
  220.         --monitor.setCursorPos(15,12)
  221.         --monitor.write("")
  222.  
  223.         --monitor.setCursorPos(15,14)
  224.         --monitor.write("")
  225.  
  226.         --monitor.setCursorPos(15,16)
  227.         --monitor.write("")
  228.        
  229.         monitor.setCursorPos(28,4)------------------ row 3
  230.         monitor.write("Alumite")
  231.        
  232.         monitor.setCursorPos(28,6)
  233.         monitor.write("Enderium")
  234.        
  235.         monitor.setCursorPos(28,8)
  236.         monitor.write("Pig Iron")
  237.  
  238.         --monitor.setCursorPos(28,10)
  239.         --monitor.write("")
  240.        
  241.         --monitor.setCursorPos(28,12)
  242.         --monitor.write("")
  243.  
  244.         --monitor.setCursorPos(28,14)
  245.         --monitor.write("")
  246.  
  247.         --monitor.setCursorPos(28,16)
  248.         --monitor.write("")
  249.        
  250.         monitor.setCursorPos(41,4)------------------ row 4
  251.         monitor.write("Bronze")
  252.        
  253.         monitor.setCursorPos(41,6)
  254.         monitor.write("Invar")
  255.        
  256.         monitor.setCursorPos(41,8)
  257.         monitor.write("Signalium")
  258.  
  259.         --monitor.setCursorPos(41,10)
  260.         --monitor.write("")
  261.        
  262.         --monitor.setCursorPos(41,12)
  263.         --monitor.write("")
  264.  
  265.         monitor.setCursorPos(41,14)
  266.         monitor.write("Stop")
  267.  
  268.        
  269.         monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
  270.        
  271.         CAL = 1 -- Counter list Alloy is now 1
  272.         CFA = 1 -- Counter Filling Alloy is now 1
  273.        
  274. end -- Ends the function
  275.  
  276. function listLiquids() -- Liquid listing function.
  277.  
  278.         monitor.clear() -- Clear Monitor
  279.        
  280.         monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to Lime for button creation
  281.        
  282.         monitor.setCursorPos(2,6)------------------- row 1
  283.         monitor.write("Back")
  284.        
  285.         monitor.setCursorPos(2,8)
  286.         monitor.write("Glue")
  287.        
  288.         --monitor.setCursorPos(2,10)
  289.         --monitor.write("")
  290.  
  291.         --monitor.setCursorPos(2,12)
  292.         --monitor.write("")
  293.        
  294.         --monitor.setCursorPos(2,14)
  295.         --monitor.write("")
  296.  
  297.         --monitor.setCursorPos(2,16)
  298.         --monitor.write("")
  299.  
  300.         --monitor.setCursorPos(2,18)
  301.         --monitor.write("")
  302.  
  303.         monitor.setCursorPos(15,6)------------------- row 2
  304.         monitor.write("Pyrotheum")
  305.        
  306.         monitor.setCursorPos(15,8)
  307.         monitor.write("Lava")
  308.        
  309.         --monitor.setCursorPos(15,10)
  310.         --monitor.write("")
  311.  
  312.         --monitor.setCursorPos(15,12)
  313.         --monitor.write("")
  314.        
  315.         --monitor.setCursorPos(15,14)
  316.         --monitor.write("")
  317.  
  318.         --monitor.setCursorPos(15,16)
  319.         --monitor.write("")
  320.  
  321.         --monitor.setCursorPos(15,18)
  322.         --monitor.write("")
  323.        
  324.         monitor.setCursorPos(28,6)------------------ row 3
  325.         monitor.write("Blood")
  326.        
  327.         monitor.setCursorPos(28,8)
  328.         monitor.write("Water")
  329.        
  330.         --monitor.setCursorPos(28,10)
  331.         --monitor.write("")
  332.  
  333.         --monitor.setCursorPos(28,12)
  334.         --monitor.write("")
  335.        
  336.         --monitor.setCursorPos(28,14)
  337.         --monitor.write("")
  338.  
  339.         --monitor.setCursorPos(28,16)
  340.         --monitor.write("")
  341.  
  342.         --monitor.setCursorPos(28,18)
  343.         --monitor.write("")
  344.        
  345.         monitor.setCursorPos(41,6)------------------ row 4
  346.         monitor.write("Cryotheum")
  347.        
  348.         --monitor.setCursorPos(41,8)
  349.         --monitor.write("")
  350.        
  351.         --monitor.setCursorPos(41,10)
  352.         --monitor.write("")
  353.  
  354.         --monitor.setCursorPos(41,12)
  355.         --monitor.write("")
  356.        
  357.         monitor.setCursorPos(41,14)
  358.         monitor.write("Stop")
  359.  
  360.         --monitor.setCursorPos(41,16)
  361.         --monitor.write("")
  362.  
  363.         --monitor.setCursorPos(41,18)
  364.         --monitor.write("")
  365.        
  366.         monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
  367.        
  368.         CLL = 1 -- Counter list Liquids is now 1
  369.         CFL = 1 -- Counter Filling Liquids is now 1
  370.        
  371. end -- Ends the function
  372.  
  373. function listBlocks() -- Block listing function.
  374.        
  375.         monitor.clear() -- Clear Monitor
  376.        
  377.         monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to lime for button creation
  378.        
  379.         monitor.setCursorPos(2,8)------------------- row 1
  380.         monitor.write("Back")
  381.        
  382.         --monitor.setCursorPos(2,10)
  383.         --monitor.write("")
  384.        
  385.         --monitor.setCursorPos(2,12)
  386.         --monitor.write("")
  387.  
  388.         --monitor.setCursorPos(2,14)
  389.         --monitor.write("")
  390.        
  391.         --monitor.setCursorPos(2,16)
  392.         --monitor.write("")
  393.  
  394.         --monitor.setCursorPos(2,18)
  395.         --monitor.write("")
  396.  
  397.         --monitor.setCursorPos(2,20)
  398.         --monitor.write("")
  399.  
  400.         monitor.setCursorPos(15,8)------------------- row 2
  401.         monitor.write("Obsidian")
  402.        
  403.         --monitor.setCursorPos(15,10)
  404.         --monitor.write("")
  405.        
  406.         --monitor.setCursorPos(15,12)
  407.         --monitor.write("")
  408.  
  409.         --monitor.setCursorPos(15,14)
  410.         --monitor.write("")
  411.        
  412.         --monitor.setCursorPos(15,16)
  413.         --monitor.write("")
  414.  
  415.         --monitor.setCursorPos(15,18)
  416.         --monitor.write("")
  417.  
  418.         --monitor.setCursorPos(15,20)
  419.         --monitor.write("")
  420.        
  421.         monitor.setCursorPos(28,8)------------------ row 3
  422.         monitor.write("Seared Stone")
  423.        
  424.         --monitor.setCursorPos(28,10)
  425.         --monitor.write("")
  426.        
  427.         --monitor.setCursorPos(28,12)
  428.         --monitor.write("")
  429.  
  430.         --monitor.setCursorPos(28,14)
  431.         --monitor.write("")
  432.        
  433.         --monitor.setCursorPos(28,16)
  434.         --monitor.write("")
  435.  
  436.         --monitor.setCursorPos(28,18)
  437.         --monitor.write("")
  438.  
  439.         --monitor.setCursorPos(28,20)
  440.         --monitor.write("")
  441.        
  442.         monitor.setCursorPos(41,8)------------------ row 4
  443.         monitor.write("Glass")
  444.        
  445.         --monitor.setCursorPos(41,10)
  446.         --monitor.write("")
  447.        
  448.         --monitor.setCursorPos(41,12)
  449.         --monitor.write("")
  450.  
  451.         --monitor.setCursorPos(41,14)
  452.         --monitor.write("")
  453.        
  454.         monitor.setCursorPos(41,16)
  455.         monitor.write("Stop")
  456.  
  457.         --monitor.setCursorPos(41,18)
  458.         --monitor.write("")
  459.  
  460.         --monitor.setCursorPos(41,20)
  461.         --monitor.write("")
  462.        
  463.         monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
  464.        
  465.         CBL = 1 -- Counter list blocks is now 1
  466.         CFB = 1 -- Counter Filling blocks is now 1
  467. end -- Ends the function
  468.  
  469. -- If clicked here then Function
  470.  
  471. function checkClickPosition() -- Everything below is a Function.
  472.  
  473.     if mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
  474.        
  475.         listMetals()
  476.        
  477.     elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 then
  478.        
  479.         listMenu()
  480.         Stop()
  481.    
  482.     elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
  483.        
  484.         listAlloys()
  485.        
  486.     elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 then
  487.    
  488.         listMenu()
  489.         Stop()
  490.    
  491.     elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
  492.        
  493.         listLiquids()
  494.        
  495.     elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 then
  496.    
  497.         listMenu()
  498.         Stop()
  499.    
  500.     elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
  501.        
  502.         listBlocks()
  503.        
  504.     elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 then
  505.    
  506.         listMenu()
  507.         Stop()
  508.        
  509.     -- Metal Inputs!
  510.    
  511.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  512.        
  513.         Stop()
  514.         listMetals()
  515.         Cobalt()
  516.         monitor.setBackgroundColour((colors.red))
  517.         monitor.setCursorPos(2,4)
  518.         monitor.write("Cobalt")
  519.         monitor.setBackgroundColour((colors.black))
  520.        
  521.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  522.    
  523.         Stop()
  524.         listMetals()
  525.         Gold()
  526.         monitor.setBackgroundColour((colors.red))
  527.         monitor.setCursorPos(2,6)
  528.         monitor.write("Gold")
  529.         monitor.setBackgroundColour((colors.black))
  530.        
  531.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  532.    
  533.         Stop()
  534.         listMetals()
  535.         LiquiCoal()
  536.         monitor.setBackgroundColour((colors.red))
  537.         monitor.setCursorPos(2,8)
  538.         monitor.write("Coal")
  539.         monitor.setBackgroundColour((colors.black))
  540.        
  541.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  542.    
  543.         Stop()
  544.         listMetals()
  545.         Unstable()
  546.         monitor.setBackgroundColour((colors.red))
  547.         monitor.setCursorPos(2,10)
  548.         monitor.write("Unstable")
  549.         monitor.setBackgroundColour((colors.black))
  550.        
  551.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  552.    
  553.         Stop()
  554.         listMetals()
  555.         Silver()
  556.         monitor.setBackgroundColour((colors.red))
  557.         monitor.setCursorPos(2,12)
  558.         monitor.write("Silver")
  559.         monitor.setBackgroundColour((colors.black))
  560.        
  561.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  562.    
  563.         Stop()
  564.         listMetals()
  565.         Yellorium()
  566.         monitor.setBackgroundColour((colors.red))
  567.         monitor.setCursorPos(2,14)
  568.         monitor.write("Yellorium")
  569.         monitor.setBackgroundColour((colors.black))
  570.        
  571.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  572.    
  573.         Stop()
  574.         Aluminum()
  575.         listMetals()
  576.         monitor.setBackgroundColour((colors.red))
  577.         monitor.setCursorPos(15,2)
  578.         monitor.write("Aluminium")
  579.         monitor.setBackgroundColour((colors.black))
  580.        
  581.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  582.    
  583.         Stop()
  584.         listMetals()
  585.         Copper()
  586.         monitor.setBackgroundColour((colors.red))
  587.         monitor.setCursorPos(15,4)
  588.         monitor.write("Copper")
  589.         monitor.setBackgroundColour((colors.black))
  590.        
  591.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  592.    
  593.         Stop()
  594.         listMetals()
  595.         Iron()
  596.         monitor.setBackgroundColour((colors.red))
  597.         monitor.setCursorPos(15,6)
  598.         monitor.write("Iron")
  599.         monitor.setBackgroundColour((colors.black))
  600.        
  601.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  602.    
  603.         Stop()
  604.         listMetals()
  605.         LiquiEmerald()
  606.         monitor.setBackgroundColour((colors.red))
  607.         monitor.setCursorPos(15,8)
  608.         monitor.write("Emerald")
  609.         monitor.setBackgroundColour((colors.black))
  610.        
  611.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  612.    
  613.         Stop()
  614.         listMetals()
  615.         Nickel()
  616.         monitor.setBackgroundColour((colors.red))
  617.         monitor.setCursorPos(15,10)
  618.         monitor.write("Nickel")
  619.         monitor.setBackgroundColour((colors.black))
  620.        
  621.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  622.    
  623.         Stop()
  624.         listMetals()
  625.         Steel()
  626.         monitor.setBackgroundColour((colors.red))
  627.         monitor.setCursorPos(15,12)
  628.         monitor.write("Steel")
  629.         monitor.setBackgroundColour((colors.black))
  630.        
  631.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  632.    
  633.         --Stop()
  634.         --listMetals()
  635.         --xxxx()
  636.         --monitor.setBackgroundColour((colors.red))
  637.         --monitor.setCursorPos(15,14)
  638.         --monitor.write("xxxx")
  639.         --monitor.setBackgroundColour((colors.black))
  640.        
  641.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  642.    
  643.         Stop()
  644.         listMetals()
  645.         Ardite()
  646.         monitor.setBackgroundColour((colors.red))
  647.         monitor.setCursorPos(28,2)
  648.         monitor.write("Ardite")
  649.         monitor.setBackgroundColour((colors.black))
  650.        
  651.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  652.    
  653.         Stop()
  654.         listMetals()
  655.         DarkIron()
  656.         monitor.setBackgroundColour((colors.red))
  657.         monitor.setCursorPos(28,4)
  658.         monitor.write("Dark Iron")
  659.         monitor.setBackgroundColour((colors.black))
  660.        
  661.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  662.    
  663.         Stop()
  664.         listMetals()
  665.         Lead()
  666.         monitor.setBackgroundColour((colors.red))
  667.         monitor.setCursorPos(28,6)
  668.         monitor.write("Lead")
  669.         monitor.setBackgroundColour((colors.black))
  670.        
  671.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  672.    
  673.         Stop()
  674.         listMetals()
  675.         ManaMetal()
  676.         monitor.setBackgroundColour((colors.red))
  677.         monitor.setCursorPos(28,8)
  678.         monitor.write("Mana Metal")
  679.         monitor.setBackgroundColour((colors.black))
  680.        
  681.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  682.    
  683.         Stop()
  684.         listMetals()
  685.         ResEnder()
  686.         monitor.setBackgroundColour((colors.red))
  687.         monitor.setCursorPos(28,10)
  688.         monitor.write("Res Ender")
  689.         monitor.setBackgroundColour((colors.black))
  690.        
  691.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  692.    
  693.         Stop()
  694.         listMetals()
  695.         Tin()
  696.         monitor.setBackgroundColour((colors.red))
  697.         monitor.setCursorPos(28,12)
  698.         monitor.write("Tin")
  699.         monitor.setBackgroundColour((colors.black))
  700.        
  701.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  702.    
  703.         --Stop()
  704.         --listMetals()
  705.         --xxxx()
  706.         --monitor.setBackgroundColour((colors.red))
  707.         --monitor.setCursorPos(28,14)
  708.         --monitor.write("xxxx")
  709.         --monitor.setBackgroundColour((colors.black))
  710.        
  711.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  712.    
  713.         Stop()
  714.         listMetals()
  715.         Bedrockium()
  716.         monitor.setBackgroundColour((colors.red))
  717.         monitor.setCursorPos(41,2)
  718.         monitor.write("Bedrockium")
  719.         monitor.setBackgroundColour((colors.black))
  720.        
  721.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  722.    
  723.         Stop()
  724.         listMetals()
  725.         DesRedstone()
  726.         monitor.setBackgroundColour((colors.red))
  727.         monitor.setCursorPos(41,4)
  728.         monitor.write("Des Redstone")
  729.         monitor.setBackgroundColour((colors.black))
  730.        
  731.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  732.    
  733.         Stop()
  734.         listMetals()
  735.         LiquidRedstone()
  736.         monitor.setBackgroundColour((colors.red))
  737.         monitor.setCursorPos(41,6)
  738.         monitor.write("Redstone")
  739.         monitor.setBackgroundColour((colors.black))
  740.        
  741.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  742.    
  743.         Stop()
  744.         listMetals()
  745.         Mithril()
  746.         monitor.setBackgroundColour((colors.red))
  747.         monitor.setCursorPos(41,8)
  748.         monitor.write("Mithril")
  749.         monitor.setBackgroundColour((colors.black))
  750.        
  751.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  752.    
  753.         Stop()
  754.         listMetals()
  755.         Shiny()
  756.         monitor.setBackgroundColour((colors.red))
  757.         monitor.setCursorPos(41,10)
  758.         monitor.write("Shiny")
  759.         monitor.setBackgroundColour((colors.black))
  760.        
  761.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  762.    
  763.         Stop()
  764.         listMetals()
  765.         Uranium()
  766.         monitor.setBackgroundColour((colors.red))
  767.         monitor.setCursorPos(41,12)
  768.         monitor.write("Uranium")
  769.         monitor.setBackgroundColour((colors.black))
  770.        
  771.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 and CFM == 1 then
  772.    
  773.         listMetals()
  774.         Stop()
  775.         monitor.setBackgroundColour((colors.red))
  776.         monitor.setCursorPos(41,14)
  777.         monitor.write("Stop")
  778.         monitor.setBackgroundColour((colors.lime))
  779.         monitor.setCursorPos(41,14)
  780.         sleep(1)
  781.         monitor.write("Stop")
  782.         monitor.setBackgroundColour((colors.black))
  783.        
  784.    
  785.     -- \Metal Inputs!
  786.    
  787.     -- Alloy Inputs!
  788.        
  789.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  790.    
  791.         Stop()
  792.         listAlloys()
  793.         Redalloy()
  794.         monitor.setBackgroundColour((colors.red))
  795.         monitor.setCursorPos(2,6)
  796.         monitor.write("Red Alloy")
  797.         monitor.setBackgroundColour((colors.black))
  798.        
  799.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  800.    
  801.         Stop()
  802.         listAlloys()
  803.         Lumium()
  804.         monitor.setBackgroundColour((colors.red))
  805.         monitor.setCursorPos(2,8)
  806.         monitor.write("Lumium")
  807.         monitor.setBackgroundColour((colors.black))
  808.        
  809.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  810.    
  811.         --Stop()
  812.         --listAlloys()
  813.         --xxxx()
  814.         --monitor.setBackgroundColour((colors.red))
  815.         --monitor.setCursorPos(2,10)
  816.         --monitor.write("xxxx")
  817.         --monitor.setBackgroundColour((colors.black))
  818.        
  819.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  820.    
  821.         --Stop()
  822.         --listAlloys()
  823.         --xxxx()
  824.         --monitor.setBackgroundColour((colors.red))
  825.         --monitor.setCursorPos(2,12)
  826.         --monitor.write("xxxx")
  827.         --monitor.setBackgroundColour((colors.black))
  828.        
  829.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  830.    
  831.         --Stop()
  832.         --listAlloys()
  833.         --xxxx()
  834.         --monitor.setBackgroundColour((colors.red))
  835.         --monitor.setCursorPos(2,14)
  836.         --monitor.write("xxxx")
  837.         --monitor.setBackgroundColour((colors.black))
  838.        
  839.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  840.    
  841.         Stop()
  842.         listAlloys()
  843.         AluminumBrass()
  844.         monitor.setBackgroundColour((colors.red))
  845.         monitor.setCursorPos(15,4)
  846.         monitor.write("Alum Brass")
  847.         monitor.setBackgroundColour((colors.black))
  848.        
  849.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  850.    
  851.         Stop()
  852.         listAlloys()
  853.         Electrum()
  854.         monitor.setBackgroundColour((colors.red))
  855.         monitor.setCursorPos(15,6)
  856.         monitor.write("Electrum")
  857.         monitor.setBackgroundColour((colors.black))
  858.        
  859.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  860.    
  861.         Stop()
  862.         listAlloys()
  863.         Manyullyn()
  864.         monitor.setBackgroundColour((colors.red))
  865.         monitor.setCursorPos(15,8)
  866.         monitor.write("Manyullyn")
  867.         monitor.setBackgroundColour((colors.black))
  868.        
  869.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 and CFA == 1 then
  870.    
  871.         --Stop()
  872.         --listAlloys()
  873.         --xxxx()
  874.         --monitor.setBackgroundColour((colors.red))
  875.         --monitor.setCursorPos(15,10)
  876.         --monitor.write("xxxx")
  877.         --monitor.setBackgroundColour((colors.black))
  878.        
  879.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  880.    
  881.         --Stop()
  882.         --listAlloys()
  883.         --xxxx()
  884.         --monitor.setBackgroundColour((colors.red))
  885.         --monitor.setCursorPos(15,12)
  886.         --monitor.write("xxx")
  887.         --monitor.setBackgroundColour((colors.black))
  888.        
  889.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  890.    
  891.         --Stop()
  892.         --listAlloys()
  893.         --xxxx()
  894.         --monitor.setBackgroundColour((colors.red))
  895.         --monitor.setCursorPos(15,14)
  896.         --monitor.write("xxxx")
  897.         --monitor.setBackgroundColour((colors.black))
  898.        
  899.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  900.    
  901.         Stop()
  902.         listAlloys()
  903.         Alumite()
  904.         monitor.setBackgroundColour((colors.red))
  905.         monitor.setCursorPos(28,4)
  906.         monitor.write("Alumite")
  907.         monitor.setBackgroundColour((colors.black))
  908.        
  909.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  910.    
  911.         Stop()
  912.         listAlloys()
  913.         Enderium()
  914.         monitor.setBackgroundColour((colors.red))
  915.         monitor.setCursorPos(28,6)
  916.         monitor.write("Enderium")
  917.         monitor.setBackgroundColour((colors.black))
  918.        
  919.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  920.    
  921.         Stop()
  922.         listAlloys()
  923.         PigIron()
  924.         monitor.setBackgroundColour((colors.red))
  925.         monitor.setCursorPos(28,8)
  926.         monitor.write("Pig Iron")
  927.         monitor.setBackgroundColour((colors.black))
  928.        
  929.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  930.    
  931.         --Stop()
  932.         --listAlloys()
  933.         --xxxx()
  934.         --monitor.setBackgroundColour((colors.red))
  935.         --monitor.setCursorPos(28,10)
  936.         --monitor.write("xxxx")
  937.         --monitor.setBackgroundColour((colors.black))
  938.        
  939.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  940.    
  941.         --Stop()
  942.         --listAlloys()
  943.         --xxxx()
  944.         --monitor.setBackgroundColour((colors.red))
  945.         --monitor.setCursorPos(28,12)
  946.         --monitor.write("xxxx")
  947.         --monitor.setBackgroundColour((colors.black))
  948.        
  949.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  950.    
  951.         --Stop()
  952.         --listAlloys()
  953.         --xxxx()
  954.         --monitor.setBackgroundColour((colors.red))
  955.         --monitor.setCursorPos(28,14)
  956.         --monitor.write("xxxx")
  957.         --monitor.setBackgroundColour((colors.black))
  958.        
  959.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  960.    
  961.         Stop()
  962.         listAlloys()
  963.         Bronze()
  964.         monitor.setBackgroundColour((colors.red))
  965.         monitor.setCursorPos(41,4)
  966.         monitor.write("Bronze")
  967.         monitor.setBackgroundColour((colors.black))
  968.        
  969.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  970.    
  971.         Stop()
  972.         listAlloys()
  973.         Invar()
  974.         monitor.setBackgroundColour((colors.red))
  975.         monitor.setCursorPos(41,6)
  976.         monitor.write("Invar")
  977.         monitor.setBackgroundColour((colors.black))
  978.        
  979.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  980.    
  981.         Stop()
  982.         listAlloys()
  983.         Signalium()
  984.         monitor.setBackgroundColour((colors.red))
  985.         monitor.setCursorPos(41,8)
  986.         monitor.write("Signalium")
  987.         monitor.setBackgroundColour((colors.black))
  988.        
  989.     --elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  990.    
  991.         --Stop()
  992.         --listAlloys()
  993.         --xxxx()
  994.         --monitor.setBackgroundColour((colors.red))
  995.         --monitor.setCursorPos(41,10)
  996.         --monitor.write("xxxx")
  997.         --monitor.setBackgroundColour((colors.black))
  998.        
  999.     --elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  1000.    
  1001.         --Stop()
  1002.         --listAlloys()
  1003.         --xxxx()
  1004.         --monitor.setBackgroundColour((colors.red))
  1005.         --monitor.setCursorPos(41,12)
  1006.         --monitor.write("xxxx")
  1007.         --monitor.setBackgroundColour((colors.black))
  1008.        
  1009.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 14 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 and CFA == 1 then
  1010.    
  1011.         listAlloys()
  1012.         Stop()
  1013.         monitor.setBackgroundColour((colors.red))
  1014.         monitor.setCursorPos(41,14)
  1015.         monitor.write("Stop")
  1016.         monitor.setBackgroundColour((colors.lime))
  1017.         monitor.setCursorPos(41,14)
  1018.         sleep(1)
  1019.         monitor.write("Stop")
  1020.         monitor.setBackgroundColour((colors.black))
  1021.        
  1022.     -- \Alloy Inputs
  1023.    
  1024.     -- Liquid Inputs
  1025.    
  1026.     elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 8 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1027.    
  1028.         Stop()
  1029.         listLiquids()
  1030.         Glue()
  1031.         monitor.setBackgroundColour((colors.red))
  1032.         monitor.setCursorPos(2,8)
  1033.         monitor.write("Glue")
  1034.         monitor.setBackgroundColour((colors.black))
  1035.        
  1036.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 10 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1037.    
  1038.         --Stop()
  1039.         --listLiquids()
  1040.         --xxxx()
  1041.         --monitor.setBackgroundColour((colors.red))
  1042.         --monitor.setCursorPos(2,10)
  1043.         --monitor.write("xxxx")
  1044.         --monitor.setBackgroundColour((colors.black))
  1045.        
  1046.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 12 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1047.    
  1048.         --Stop()
  1049.         --listLiquids()
  1050.         --xxxx()
  1051.         --monitor.setBackgroundColour((colors.red))
  1052.         --monitor.setCursorPos(2,12)
  1053.         --monitor.write("xxxx")
  1054.         --monitor.setBackgroundColour((colors.black))
  1055.        
  1056.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 14 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1057.    
  1058.         --Stop()
  1059.         --listLiquids()
  1060.         --xxxx()
  1061.         --monitor.setBackgroundColour((colors.red))
  1062.         --monitor.setCursorPos(2,14)
  1063.         --monitor.write("xxxx")
  1064.         --monitor.setBackgroundColour((colors.black))
  1065.        
  1066.  
  1067.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1068.    
  1069.         Stop()
  1070.         listLiquids()
  1071.         Pyrotheum()
  1072.         monitor.setBackgroundColour((colors.red))
  1073.         monitor.setCursorPos(15,6)
  1074.         monitor.write("Pyrotheum")
  1075.         monitor.setBackgroundColour((colors.black))
  1076.        
  1077.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 8 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1078.        
  1079.         Stop()
  1080.         listLiquids()
  1081.         Lava()
  1082.         monitor.setBackgroundColour((colors.red))
  1083.         monitor.setCursorPos(15,8)
  1084.         monitor.write("Lava")
  1085.         monitor.setBackgroundColour((colors.black))
  1086.        
  1087.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 10 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1088.        
  1089.         --Stop()
  1090.         --listLiquids()
  1091.         --xxxx()
  1092.         --monitor.setBackgroundColour((colors.red))
  1093.         --monitor.setCursorPos(15,10)
  1094.         --monitor.write("xxxx")
  1095.         --monitor.setBackgroundColour((colors.black))
  1096.        
  1097.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 12 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1098.        
  1099.         --Stop()
  1100.         --listLiquids()
  1101.         --xxxx()
  1102.         --monitor.setBackgroundColour((colors.red))
  1103.         --monitor.setCursorPos(15,12)
  1104.         --monitor.write("xxx")
  1105.         --monitor.setBackgroundColour((colors.black))
  1106.        
  1107.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 14 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1108.        
  1109.         --Stop()
  1110.         --listLiquids()
  1111.         --xxxx()
  1112.         --monitor.setBackgroundColour((colors.red))
  1113.         --monitor.setCursorPos(15,14)
  1114.         --monitor.write("xxxx")
  1115.         --monitor.setBackgroundColour((colors.black))
  1116.        
  1117.  
  1118.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1119.        
  1120.         Stop()
  1121.         listLiquids()
  1122.         Blood()
  1123.         monitor.setBackgroundColour((colors.red))
  1124.         monitor.setCursorPos(28,6)
  1125.         monitor.write("Blood")
  1126.         monitor.setBackgroundColour((colors.black))
  1127.        
  1128.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 8 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1129.        
  1130.         Stop()
  1131.         listLiquids()
  1132.         Water()
  1133.         monitor.setBackgroundColour((colors.red))
  1134.         monitor.setCursorPos(28,8)
  1135.         monitor.write("Water")
  1136.         monitor.setBackgroundColour((colors.black))
  1137.        
  1138.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 10 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1139.        
  1140.         --Stop()
  1141.         --listLiquids()
  1142.         --xxxx()
  1143.         --monitor.setBackgroundColour((colors.red))
  1144.         --monitor.setCursorPos(28,10)
  1145.         --monitor.write("xxxx")
  1146.         --monitor.setBackgroundColour((colors.black))
  1147.        
  1148.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 12 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1149.        
  1150.         --Stop()
  1151.         --listLiquids()
  1152.         --xxxx()
  1153.         --monitor.setBackgroundColour((colors.red))
  1154.         --monitor.setCursorPos(28,12)
  1155.         --monitor.write("xxxx")
  1156.         --monitor.setBackgroundColour((colors.black))
  1157.        
  1158.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 14 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1159.        
  1160.         --Stop()
  1161.         --listLiquids()
  1162.         --xxxx()
  1163.         --monitor.setBackgroundColour((colors.red))
  1164.         --monitor.setCursorPos(28,14)
  1165.         --monitor.write("xxxx")
  1166.         --monitor.setBackgroundColour((colors.black))
  1167.        
  1168.  
  1169.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1170.        
  1171.         Stop()
  1172.         listLiquids()
  1173.         Cryotheum()
  1174.         monitor.setBackgroundColour((colors.red))
  1175.         monitor.setCursorPos(41,6)
  1176.         monitor.write("Cryotheum")
  1177.         monitor.setBackgroundColour((colors.black))
  1178.        
  1179.     --elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 8 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1180.        
  1181.         --Stop()
  1182.         --listLiquids()
  1183.         --xxxx()
  1184.         --monitor.setBackgroundColour((colors.red))
  1185.         --monitor.setCursorPos(41,8)
  1186.         --monitor.write("xxxx")
  1187.         --monitor.setBackgroundColour((colors.black))
  1188.        
  1189.     --elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 10 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1190.        
  1191.         --Stop()
  1192.         --listLiquids()
  1193.         --xxxx()
  1194.         --monitor.setBackgroundColour((colors.red))
  1195.         --monitor.setCursorPos(41,10)
  1196.         --monitor.write("xxxx")
  1197.         --monitor.setBackgroundColour((colors.black))
  1198.        
  1199.     --elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 12 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1200.        
  1201.         --Stop()
  1202.         --listLiquids()
  1203.         --xxxx()
  1204.         --monitor.setBackgroundColour((colors.red))
  1205.         --monitor.setCursorPos(41,12)
  1206.         --monitor.write("xxxx")
  1207.         --monitor.setBackgroundColour((colors.black))
  1208.        
  1209.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 14 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 and CFL == 1 then
  1210.        
  1211.         listLiquids()
  1212.         Stop()
  1213.         monitor.setBackgroundColour((colors.red))
  1214.         monitor.setCursorPos(41,14)
  1215.         monitor.write("Stop")
  1216.         monitor.setBackgroundColour((colors.lime))
  1217.         monitor.setCursorPos(41,14)
  1218.         sleep(1)
  1219.         monitor.write("Stop")
  1220.         monitor.setBackgroundColour((colors.black))
  1221.  
  1222.     -- \Liquid Inputs
  1223.    
  1224.     -- Block inputs
  1225.  
  1226.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 10 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1227.    
  1228.         --Stop()
  1229.         --listBlocks()
  1230.         --xxxx()
  1231.         --monitor.setBackgroundColour((colors.red))
  1232.         --monitor.setCursorPos(2,10)
  1233.         --monitor.write("xxxx")
  1234.         --monitor.setBackgroundColour((colors.black))
  1235.        
  1236.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 12 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1237.    
  1238.         --Stop()
  1239.         --listBlocks()
  1240.         --xxxx()
  1241.         --monitor.setBackgroundColour((colors.red))
  1242.         --monitor.setCursorPos(2,12)
  1243.         --monitor.write("xxxx")
  1244.         --monitor.setBackgroundColour((colors.black))
  1245.        
  1246.     --elseif mouseWidth > 1 and mouseWidth < 11 and mouseHeight == 14 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1247.    
  1248.         --Stop()
  1249.         --listBlocks()
  1250.         --xxxx()
  1251.         --monitor.setBackgroundColour((colors.red))
  1252.         --monitor.setCursorPos(2,14)
  1253.         --monitor.write("xxxx")
  1254.         --monitor.setBackgroundColour((colors.black))
  1255.        
  1256.  
  1257.     elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1258.    
  1259.         Stop()
  1260.         listBlocks()
  1261.         Obsidian()
  1262.         monitor.setBackgroundColour((colors.red))
  1263.         monitor.setCursorPos(15,8)
  1264.         monitor.write("Obsidian")
  1265.         monitor.setBackgroundColour((colors.black))
  1266.        
  1267.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 10 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1268.    
  1269.         --Stop()
  1270.         --listBlocks()
  1271.         --xxxx()
  1272.         --monitor.setBackgroundColour((colors.red))
  1273.         --monitor.setCursorPos(15,10)
  1274.         --monitor.write("xxxx")
  1275.         --monitor.setBackgroundColour((colors.black))
  1276.        
  1277.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 12 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1278.    
  1279.         --Stop()
  1280.         --listBlocks()
  1281.         --xxxx()
  1282.         --monitor.setBackgroundColour((colors.red))
  1283.         --monitor.setCursorPos(15,12)
  1284.         --monitor.write("xxx")
  1285.         --monitor.setBackgroundColour((colors.black))
  1286.        
  1287.     --elseif mouseWidth > 14 and mouseWidth < 25 and mouseHeight == 14 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1288.    
  1289.         --Stop()
  1290.         --listBlocks()
  1291.         --xxxx()
  1292.         --monitor.setBackgroundColour((colors.red))
  1293.         --monitor.setCursorPos(15,14)
  1294.         --monitor.write("xxxx")
  1295.         --monitor.setBackgroundColour((colors.black))
  1296.        
  1297.  
  1298.     elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1299.    
  1300.         Stop()
  1301.         listBlocks()
  1302.         Seared()
  1303.         monitor.setBackgroundColour((colors.red))
  1304.         monitor.setCursorPos(28,8)
  1305.         monitor.write("Seared Stone")
  1306.         monitor.setBackgroundColour((colors.black))
  1307.        
  1308.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 10 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1309.    
  1310.         --Stop()
  1311.         --listBlocks()
  1312.         --xxxx()
  1313.         --monitor.setBackgroundColour((colors.red))
  1314.         --monitor.setCursorPos(28,10)
  1315.         --monitor.write("xxxx")
  1316.         --monitor.setBackgroundColour((colors.black))
  1317.        
  1318.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 12 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1319.    
  1320.         --Stop()
  1321.         --listBlocks()
  1322.         --xxxx()
  1323.         --monitor.setBackgroundColour((colors.red))
  1324.         --monitor.setCursorPos(28,12)
  1325.         --monitor.write("xxxx")
  1326.         --monitor.setBackgroundColour((colors.black))
  1327.        
  1328.     --elseif mouseWidth > 27 and mouseWidth < 39 and mouseHeight == 14 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1329.    
  1330.         --Stop()
  1331.         --listBlocks()
  1332.         --xxxx()
  1333.         --monitor.setBackgroundColour((colors.red))
  1334.         --monitor.setCursorPos(28,14)
  1335.         --monitor.write("xxxx")
  1336.         --monitor.setBackgroundColour((colors.black))
  1337.        
  1338.  
  1339.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1340.    
  1341.         Stop()
  1342.         listBlocks()
  1343.         Glass()
  1344.         monitor.setBackgroundColour((colors.red))
  1345.         monitor.setCursorPos(41,8)
  1346.         monitor.write("Glass")
  1347.         monitor.setBackgroundColour((colors.black))
  1348.        
  1349.     --elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 10 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1350.    
  1351.         --Stop()
  1352.         --listBlocks()
  1353.         --xxxx()
  1354.         --monitor.setBackgroundColour((colors.red))
  1355.         --monitor.setCursorPos(41,10)
  1356.         --monitor.write("xxxx")
  1357.         --monitor.setBackgroundColour((colors.black))
  1358.        
  1359.     --elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 12 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1360.    
  1361.         --Stop()
  1362.         --listBlocks()
  1363.         --xxxx()
  1364.         --monitor.setBackgroundColour((colors.red))
  1365.         --monitor.setCursorPos(41,12)
  1366.         --monitor.write("xxxx")
  1367.         --monitor.setBackgroundColour((colors.black))
  1368.        
  1369.     elseif mouseWidth > 40 and mouseWidth < 53 and mouseHeight == 14 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 and CFB == 1 then
  1370.    
  1371.         listBlocks()
  1372.         Stop()
  1373.         monitor.setBackgroundColour((colors.red))
  1374.         monitor.setCursorPos(41,14)
  1375.         monitor.write("Stop")
  1376.         monitor.setBackgroundColour((colors.lime))
  1377.         monitor.setCursorPos(41,14)
  1378.         sleep(1)
  1379.         monitor.write("Stop")
  1380.         monitor.setBackgroundColour((colors.black))
  1381.  
  1382.    
  1383.     -- \Block inputs
  1384.    
  1385.     end -- end If sentence 
  1386.    
  1387. end -- Ends the function
  1388.  
  1389. -- \If clicked here then Function
  1390.  
  1391. -- Function for Metal input
  1392.  
  1393. function Aluminum()
  1394.  
  1395. redstone.setBundledOutput("back", colors.black)
  1396.  
  1397. end
  1398.  
  1399. function Ardite()
  1400.  
  1401. redstone.setBundledOutput("back", colors.gray)
  1402.  
  1403. end
  1404.  
  1405. function Bedrockium()
  1406.  
  1407. redstone.setBundledOutput("back", colors.lightGray)
  1408.  
  1409. end
  1410.  
  1411. function Cobalt()
  1412.  
  1413. redstone.setBundledOutput("back", colors.white)
  1414.  
  1415. end
  1416.  
  1417. function Copper()
  1418.  
  1419. redstone.setBundledOutput("back", colors.green)
  1420.  
  1421. end
  1422.  
  1423. function DarkIron()
  1424.  
  1425. redstone.setBundledOutput("back", colors.lime)
  1426.  
  1427. end
  1428.  
  1429. function DesRedstone()
  1430.  
  1431. redstone.setBundledOutput("left", colors.lightBlue)
  1432.  
  1433. end
  1434.  
  1435. function EnerGlowstone()
  1436.  
  1437. redstone.setBundledOutput("left", colors.cyan)
  1438.  
  1439. end
  1440.  
  1441. function Gold()
  1442.  
  1443. redstone.setBundledOutput("left", colors.lime)
  1444.  
  1445. end
  1446.  
  1447. function Iron()
  1448.  
  1449. redstone.setBundledOutput("left", colors.green)
  1450.  
  1451. end
  1452.  
  1453. function Lead()
  1454.  
  1455. redstone.setBundledOutput("left", colors.white)
  1456.  
  1457. end
  1458.  
  1459. function LiquidRedstone()
  1460.  
  1461. redstone.setBundledOutput("left", colors.lightGray)
  1462.  
  1463. end
  1464.  
  1465. function LiquiCoal()
  1466.  
  1467. redstone.setBundledOutput("left", colors.gray)
  1468.  
  1469. end
  1470.  
  1471. function LiquiEmerald()
  1472.  
  1473. redstone.setBundledOutput("left", colors.black)
  1474.  
  1475. end
  1476.  
  1477. function ManaMetal()
  1478.  
  1479. redstone.setBundledOutput("left", colors.blue)
  1480.  
  1481. end
  1482.  
  1483. function Mithril()
  1484.  
  1485. redstone.setBundledOutput("left", colors.purple)
  1486.  
  1487. end
  1488.  
  1489. function Unstable()
  1490.  
  1491. redstone.setBundledOutput("left", colors.red)
  1492.  
  1493. end
  1494.  
  1495. function Nickel()
  1496.  
  1497. redstone.setBundledOutput("left", colors.magenta)
  1498.  
  1499. end
  1500.  
  1501. function ResEnder()
  1502.  
  1503. redstone.setBundledOutput("left", colors.pink)
  1504.  
  1505. end
  1506.  
  1507.  function Shiny()
  1508.  
  1509. redstone.setBundledOutput("left", colors.yellow)
  1510.  
  1511. end
  1512.  
  1513.  function Silver()
  1514.  
  1515. redstone.setBundledOutput("left", colors.orange)
  1516.  
  1517. end
  1518.  
  1519.  function Steel()
  1520.  
  1521. redstone.setBundledOutput("left", colors.brown)
  1522.  
  1523. end
  1524.  
  1525.  function Tin()
  1526.  
  1527. redstone.setBundledOutput("right", colors.brown)
  1528.  
  1529. end
  1530.  
  1531.  function Uranium()
  1532.  
  1533. redstone.setBundledOutput("right", colors.orange)
  1534.  
  1535. end
  1536.  
  1537.  function Yellorium()
  1538.  
  1539. redstone.setBundledOutput("right", colors.yellow)
  1540.  
  1541. end
  1542.  
  1543. -- \Function for Metal input
  1544.  
  1545. -- Function for Alloy Input
  1546.  
  1547. function AluminumBrass()
  1548.    
  1549. redstone.setBundledOutput("right", colors.pink)
  1550.  
  1551. end
  1552.  
  1553. function Alumite()
  1554.    
  1555. redstone.setBundledOutput("right", colors.magenta)
  1556.  
  1557. end
  1558.  
  1559. function Bronze()
  1560.    
  1561. redstone.setBundledOutput("right", colors.red)
  1562.  
  1563. end
  1564.  
  1565. function Redalloy()
  1566.    
  1567. redstone.setBundledOutput("right", colors.purple)
  1568.  
  1569. end
  1570.  
  1571. function Electrum()
  1572.    
  1573. redstone.setBundledOutput("right", colors.blue)
  1574.  
  1575. end
  1576.  
  1577. function Enderium()
  1578.    
  1579. redstone.setBundledOutput("right", colors.black)
  1580.  
  1581. end
  1582.  
  1583. function Invar()
  1584.    
  1585. redstone.setBundledOutput("right", colors.gray)
  1586.  
  1587. end
  1588.  
  1589. function Lumium()
  1590.    
  1591. redstone.setBundledOutput("right", colors.lightGray)
  1592.  
  1593. end
  1594.  
  1595. function Manyullyn()
  1596.    
  1597. redstone.setBundledOutput("right", colors.white)
  1598.  
  1599. end
  1600.  
  1601. function PigIron()
  1602.    
  1603. redstone.setBundledOutput("right", colors.green)
  1604.  
  1605. end
  1606.  
  1607. function Signalium()
  1608.    
  1609. redstone.setBundledOutput("right", colors.lime)
  1610.  
  1611. end
  1612.  
  1613. -- \Function for Alloy input
  1614.  
  1615. -- Function for Fluid Input
  1616.  
  1617. function Pyrotheum()
  1618.    
  1619. redstone.setBundledOutput("right", colors.cyan)
  1620.  
  1621. end
  1622.  
  1623. function Blood()
  1624.    
  1625. redstone.setBundledOutput("right", colors.lightBlue)
  1626.  
  1627. end
  1628.  
  1629. function Cryotheum()
  1630.    
  1631. redstone.setBundledOutput("back", colors.magenta)
  1632.  
  1633. end
  1634.  
  1635. function Glue()
  1636.    
  1637. redstone.setBundledOutput("back", colors.red)
  1638.  
  1639. end
  1640.  
  1641. function Lava()
  1642.    
  1643. redstone.setBundledOutput("back", colors.purple)
  1644.  
  1645. end
  1646.  
  1647. -- \Function for Fluid Input
  1648.  
  1649. -- Function for Block Input
  1650.  
  1651. function Glass()
  1652.    
  1653. redstone.setBundledOutput("back", colors.blue)
  1654.  
  1655. end
  1656.  
  1657. function Obsidian()
  1658.    
  1659. redstone.setBundledOutput("back", colors.lightBlue)
  1660.  
  1661. end
  1662.  
  1663. function Seared()
  1664.    
  1665. redstone.setBundledOutput("back", colors.cyan)
  1666.  
  1667. end
  1668.  
  1669. -- \Function for Block Input
  1670.  
  1671. -- Function to stop every input
  1672.  
  1673. function Stop()
  1674.  
  1675. redstone.setBundledOutput("right", 0)
  1676. redstone.setBundledOutput("left", 0)
  1677. redstone.setBundledOutput("back", 0)
  1678.  
  1679. end
  1680. -- \Function to stop every input
  1681.  
  1682. -- \Functions for right clicking on monitor and what it is supposed to do.
  1683. -----------------------------------------------------------------------------------------------
  1684. -- Repeat event for checking if someone Right clicked the Monitor
  1685.  
  1686. repeat -- Repeat this:
  1687.  
  1688.     event,p1,p2,p3 = os.pullEvent() -- Get Event data: event,p1,p2,p3 from os.pullEvent()
  1689.    
  1690.         if event == "monitor_touch" then -- When the event monitor_touch is triggered then
  1691.        
  1692.         mouseWidth = p2 -- sets the number of p2 into the variable mouseWidth.
  1693.         mouseHeight = p3 -- same with mouse Height
  1694.         checkClickPosition() -- This will run the Function previously created!
  1695.        
  1696.         -- Debug stuff!
  1697.        
  1698.         print(mouseWidth)
  1699.         print(mouseHeight)
  1700.         print("CLL: ", CLL)
  1701.         print("CAL: ", CAL)
  1702.         print("CML: ", CML)
  1703.         print("CBL: ", CBL)
  1704.        
  1705.         --\ Debug stuff!
  1706.        
  1707.         end -- end the IF statement.
  1708.  
  1709. until event=="char" and p1==("x") -- Repeat until event "char" is activated and "x" is pressed.
  1710.  
  1711. -- \Repeat event for checking if someone Right clicked the Monitor
Advertisement
Add Comment
Please, Sign In to add comment