Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables
- CMO = 0 -- Counter Metal Input
- CES = 0 -- Counter Empty Smeltery
- -- Button Variable for showing button list!
- CML = 0 -- Counter Metal List
- CAL = 0 -- Counter Alloy List
- CLL = 0 -- Counter Liquid List
- CBL = 0 -- Counter Block List
- CMML = 0 -- Counter Menu List
- -- \Button Variable for showing button list!
- -- Filling Variables
- CFM = 0 -- Counter Filling Metal
- CFA = 0 -- Counter Filling Alloy
- CFL = 0 -- Counter Filling Liquid
- CFB = 0 -- Counter Filling Block
- -- MouseWidth/Height Variables
- mouseWidth = 0 -- mouseWidth Variable
- mouseHeight = 0 -- mouseHeight Variable
- -- \MouseWidth/Height Variables
- -- \Variables
- ----------------------------------------------------------------------------------------------
- -- Computercraft Monitor wrapping
- monitor = peripheral.wrap("monitor_4") -- insert Monitor position here
- -- \Computercraft Monitor wrapping
- ----------------------------------------------------------------------------------------------
- -- Monitor Clearing + Background color change and cursor Positioning
- monitor.setBackgroundColour((colors.black)) -- Return to standart color BEFORE clearing the screen
- monitor.clear() -- Clear Monitor
- monitor.setCursorPos(1,1) -- Set Cursor to Position 1,1
- -- \Monitor Clearing + Background color change and cursor Positioning
- ----------------------------------------------------------------------------------------------
- -- Debug text for Display Size
- w,h=monitor.getSize() -- set w to Width of the monitor and h to Height in Pixels
- print(w) -- Print width of monitor
- print(h) -- print Height of monitor
- -- \Debug text for Display Size
- ----------------------------------------------------------------------------------------------
- -- Create Buttons for Metals, Alloys etc.
- function listMenu() -- Create function
- monitor.clear()
- monitor.setBackgroundColour((colours.lime)) -- Set monitor Background Color for Button Creation
- monitor.setCursorPos(2,2) -- Set Cursor Position to 2,2
- monitor.write("Metals") -- Write "Metals" at Current Cursor Position
- monitor.setCursorPos(2,4)
- monitor.write("Alloys")
- monitor.setCursorPos(2,6)
- monitor.write("Liquids")
- monitor.setCursorPos(2,8)
- monitor.write("Blocks")
- monitor.setCursorPos(2,10)
- monitor.write("Empty")
- monitor.setCursorPos(2,12)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.black)) -- Reset Monitor Background Color back to black
- CML = 0
- CAL = 0
- CLL = 0
- CBL = 0
- end -- End Function
- listMenu()
- -- \Create Buttons for Metals, Alloys etc.
- -----------------------------------------------------------------------------------------------
- -- Functions for right clicking on monitor and what it is supposed to do.
- function listMetals() -- Metal listing function.
- monitor.clear() -- Clear Monitor
- monitor.setBackgroundColour((colours.lime)) -- Set Monitor Background color to Lime for button creation
- monitor.setCursorPos(2,2)------------------- row 1
- monitor.write("Back")
- monitor.setCursorPos(2,4)
- monitor.write("Cobalt")
- monitor.setCursorPos(2,6)
- monitor.write("Gold")
- monitor.setCursorPos(2,8)
- monitor.write("Coal")
- monitor.setCursorPos(2,10)
- monitor.write("Unstable")
- monitor.setCursorPos(2,12)
- monitor.write("Silver")
- monitor.setCursorPos(2,14)
- monitor.write("Yellorium")
- monitor.setCursorPos(15,2)------------------- row 2
- monitor.write("Aluminium")
- monitor.setCursorPos(15,4)
- monitor.write("Copper")
- monitor.setCursorPos(15,6)
- monitor.write("Iron")
- monitor.setCursorPos(15,8)
- monitor.write("Emerald")
- monitor.setCursorPos(15,10)
- monitor.write("Nickel")
- monitor.setCursorPos(15,12)
- monitor.write("Steel")
- --monitor.setCursorPos(15,14)
- --monitor.write("")
- monitor.setCursorPos(28,2)------------------ row 3
- monitor.write("Ardite")
- monitor.setCursorPos(28,4)
- monitor.write("Dark Iron")
- monitor.setCursorPos(28,6)
- monitor.write("Lead")
- monitor.setCursorPos(28,8)
- monitor.write("Mana Metal")
- monitor.setCursorPos(28,10)
- monitor.write("Res Ender")
- monitor.setCursorPos(28,12)
- monitor.write("Tin")
- --monitor.setCursorPos(28,14)
- --monitor.write("")
- monitor.setCursorPos(41,2)------------------ row 4
- monitor.write("Bedrockium")
- monitor.setCursorPos(41,4)
- monitor.write("Des Redstone")
- monitor.setCursorPos(41,6)
- monitor.write("Redstone")
- monitor.setCursorPos(41,8)
- monitor.write("Mithril")
- monitor.setCursorPos(41,10)
- monitor.write("Shiny")
- monitor.setCursorPos(41,12)
- monitor.write("Uranium")
- monitor.setCursorPos(41,14)
- monitor.write("Stop")
- monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
- CML = 1 -- Counter Metal List is now 1
- CFM = 1 -- Counter Filling Metal is now 1
- end -- Ends the function
- function listAlloys() -- Alloy listing function.
- monitor.clear() -- Clear Monitor
- monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to lime for button creation
- monitor.setCursorPos(2,4)------------------- row 1
- monitor.write("Back")
- monitor.setCursorPos(2,6)
- monitor.write("Red Alloy")
- monitor.setCursorPos(2,8)
- monitor.write("Lumium")
- --monitor.setCursorPos(2,10)
- --monitor.write("")
- --monitor.setCursorPos(2,12)
- --monitor.write("")
- --monitor.setCursorPos(2,14)
- --monitor.write("")
- --monitor.setCursorPos(2,16)
- --monitor.write("")
- monitor.setCursorPos(15,4)------------------- row 2
- monitor.write("Alum Brass")
- monitor.setCursorPos(15,6)
- monitor.write("Electrum")
- monitor.setCursorPos(15,8)
- monitor.write("Manyullyn")
- --monitor.setCursorPos(15,10)
- --monitor.write("")
- --monitor.setCursorPos(15,12)
- --monitor.write("")
- --monitor.setCursorPos(15,14)
- --monitor.write("")
- --monitor.setCursorPos(15,16)
- --monitor.write("")
- monitor.setCursorPos(28,4)------------------ row 3
- monitor.write("Alumite")
- monitor.setCursorPos(28,6)
- monitor.write("Enderium")
- monitor.setCursorPos(28,8)
- monitor.write("Pig Iron")
- --monitor.setCursorPos(28,10)
- --monitor.write("")
- --monitor.setCursorPos(28,12)
- --monitor.write("")
- --monitor.setCursorPos(28,14)
- --monitor.write("")
- --monitor.setCursorPos(28,16)
- --monitor.write("")
- monitor.setCursorPos(41,4)------------------ row 4
- monitor.write("Bronze")
- monitor.setCursorPos(41,6)
- monitor.write("Invar")
- monitor.setCursorPos(41,8)
- monitor.write("Signalium")
- --monitor.setCursorPos(41,10)
- --monitor.write("")
- --monitor.setCursorPos(41,12)
- --monitor.write("")
- monitor.setCursorPos(41,14)
- monitor.write("Stop")
- monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
- CAL = 1 -- Counter list Alloy is now 1
- CFA = 1 -- Counter Filling Alloy is now 1
- end -- Ends the function
- function listLiquids() -- Liquid listing function.
- monitor.clear() -- Clear Monitor
- monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to Lime for button creation
- monitor.setCursorPos(2,6)------------------- row 1
- monitor.write("Back")
- monitor.setCursorPos(2,8)
- monitor.write("Glue")
- --monitor.setCursorPos(2,10)
- --monitor.write("")
- --monitor.setCursorPos(2,12)
- --monitor.write("")
- --monitor.setCursorPos(2,14)
- --monitor.write("")
- --monitor.setCursorPos(2,16)
- --monitor.write("")
- --monitor.setCursorPos(2,18)
- --monitor.write("")
- monitor.setCursorPos(15,6)------------------- row 2
- monitor.write("Pyrotheum")
- monitor.setCursorPos(15,8)
- monitor.write("Lava")
- --monitor.setCursorPos(15,10)
- --monitor.write("")
- --monitor.setCursorPos(15,12)
- --monitor.write("")
- --monitor.setCursorPos(15,14)
- --monitor.write("")
- --monitor.setCursorPos(15,16)
- --monitor.write("")
- --monitor.setCursorPos(15,18)
- --monitor.write("")
- monitor.setCursorPos(28,6)------------------ row 3
- monitor.write("Blood")
- monitor.setCursorPos(28,8)
- monitor.write("Water")
- --monitor.setCursorPos(28,10)
- --monitor.write("")
- --monitor.setCursorPos(28,12)
- --monitor.write("")
- --monitor.setCursorPos(28,14)
- --monitor.write("")
- --monitor.setCursorPos(28,16)
- --monitor.write("")
- --monitor.setCursorPos(28,18)
- --monitor.write("")
- monitor.setCursorPos(41,6)------------------ row 4
- monitor.write("Cryotheum")
- --monitor.setCursorPos(41,8)
- --monitor.write("")
- --monitor.setCursorPos(41,10)
- --monitor.write("")
- --monitor.setCursorPos(41,12)
- --monitor.write("")
- monitor.setCursorPos(41,14)
- monitor.write("Stop")
- --monitor.setCursorPos(41,16)
- --monitor.write("")
- --monitor.setCursorPos(41,18)
- --monitor.write("")
- monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
- CLL = 1 -- Counter list Liquids is now 1
- CFL = 1 -- Counter Filling Liquids is now 1
- end -- Ends the function
- function listBlocks() -- Block listing function.
- monitor.clear() -- Clear Monitor
- monitor.setBackgroundColour((colours.lime)) -- Set monitor background color to lime for button creation
- monitor.setCursorPos(2,8)------------------- row 1
- monitor.write("Back")
- --monitor.setCursorPos(2,10)
- --monitor.write("")
- --monitor.setCursorPos(2,12)
- --monitor.write("")
- --monitor.setCursorPos(2,14)
- --monitor.write("")
- --monitor.setCursorPos(2,16)
- --monitor.write("")
- --monitor.setCursorPos(2,18)
- --monitor.write("")
- --monitor.setCursorPos(2,20)
- --monitor.write("")
- monitor.setCursorPos(15,8)------------------- row 2
- monitor.write("Obsidian")
- --monitor.setCursorPos(15,10)
- --monitor.write("")
- --monitor.setCursorPos(15,12)
- --monitor.write("")
- --monitor.setCursorPos(15,14)
- --monitor.write("")
- --monitor.setCursorPos(15,16)
- --monitor.write("")
- --monitor.setCursorPos(15,18)
- --monitor.write("")
- --monitor.setCursorPos(15,20)
- --monitor.write("")
- monitor.setCursorPos(28,8)------------------ row 3
- monitor.write("Seared Stone")
- --monitor.setCursorPos(28,10)
- --monitor.write("")
- --monitor.setCursorPos(28,12)
- --monitor.write("")
- --monitor.setCursorPos(28,14)
- --monitor.write("")
- --monitor.setCursorPos(28,16)
- --monitor.write("")
- --monitor.setCursorPos(28,18)
- --monitor.write("")
- --monitor.setCursorPos(28,20)
- --monitor.write("")
- monitor.setCursorPos(41,8)------------------ row 4
- monitor.write("Glass")
- --monitor.setCursorPos(41,10)
- --monitor.write("")
- --monitor.setCursorPos(41,12)
- --monitor.write("")
- --monitor.setCursorPos(41,14)
- --monitor.write("")
- monitor.setCursorPos(41,16)
- monitor.write("Stop")
- --monitor.setCursorPos(41,18)
- --monitor.write("")
- --monitor.setCursorPos(41,20)
- --monitor.write("")
- monitor.setBackgroundColour((colours.black)) -- Set Background color back to black
- CBL = 1 -- Counter list blocks is now 1
- CFB = 1 -- Counter Filling blocks is now 1
- end -- Ends the function
- -- If clicked here then Function
- function checkClickPosition() -- Everything below is a Function.
- if mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
- listMetals()
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 2 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 1 then
- listMenu()
- Stop()
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
- listAlloys()
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 4 and CLL == 0 and CBL == 0 and CAL == 1 and CML == 0 then
- listMenu()
- Stop()
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 6 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
- listLiquids()
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 6 and CLL == 1 and CBL == 0 and CAL == 0 and CML == 0 then
- listMenu()
- Stop()
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 8 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
- listBlocks()
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 8 and CLL == 0 and CBL == 1 and CAL == 0 and CML == 0 then
- listMenu()
- Stop()
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 10 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
- listMenu()
- Empty()
- monitor.setBackgroundColour((color.red))
- monitor.setCursorPos(2,10)
- monitor.write("Empty")
- elseif mouseWidth > 1 and mouseWidth < 7 and mouseHeight == 12 and CLL == 0 and CBL == 0 and CAL == 0 and CML == 0 then
- listMenu()
- Stop()
- monitor.setBackgroundColour((color.red))
- monitor.setCursorPos(2,12)
- monitor.write("Stop")
- sleep(1)
- monitor.setBackgroundColour((color.lime))
- monitor.setCursorPos(2,12)
- monitor.write("Stop")
- monitor.setBackgroundColour((color.black))
- -- Metal Inputs!
- 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
- Stop()
- listMetals()
- Cobalt()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,4)
- monitor.write("Cobalt")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Gold()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,6)
- monitor.write("Gold")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- LiquiCoal()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,8)
- monitor.write("Coal")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Unstable()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,10)
- monitor.write("Unstable")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Silver()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,12)
- monitor.write("Silver")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Yellorium()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,14)
- monitor.write("Yellorium")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- Aluminum()
- listMetals()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,2)
- monitor.write("Aluminium")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Copper()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,4)
- monitor.write("Copper")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Iron()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,6)
- monitor.write("Iron")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- LiquiEmerald()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,8)
- monitor.write("Emerald")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Nickel()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,10)
- monitor.write("Nickel")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Steel()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,12)
- monitor.write("Steel")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listMetals()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Ardite()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,2)
- monitor.write("Ardite")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- DarkIron()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,4)
- monitor.write("Dark Iron")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Lead()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,6)
- monitor.write("Lead")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- ManaMetal()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,8)
- monitor.write("Mana Metal")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- ResEnder()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,10)
- monitor.write("Res Ender")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Tin()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,12)
- monitor.write("Tin")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listMetals()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Bedrockium()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,2)
- monitor.write("Bedrockium")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- DesRedstone()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,4)
- monitor.write("Des Redstone")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- LiquidRedstone()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,6)
- monitor.write("Redstone")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Mithril()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,8)
- monitor.write("Mithril")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Shiny()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,10)
- monitor.write("Shiny")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listMetals()
- Uranium()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,12)
- monitor.write("Uranium")
- monitor.setBackgroundColour((colors.black))
- 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
- listMetals()
- Stop()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,14)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.lime))
- monitor.setCursorPos(41,14)
- sleep(1)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.black))
- -- \Metal Inputs!
- -- Alloy Inputs!
- 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
- Stop()
- listAlloys()
- Redalloy()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,6)
- monitor.write("Red Alloy")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- Lumium()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,8)
- monitor.write("Lumium")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- AluminumBrass()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,4)
- monitor.write("Alum Brass")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- Electrum()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,6)
- monitor.write("Electrum")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- Manyullyn()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,8)
- monitor.write("Manyullyn")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,12)
- --monitor.write("xxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- Alumite()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,4)
- monitor.write("Alumite")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- Enderium()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,6)
- monitor.write("Enderium")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- PigIron()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,8)
- monitor.write("Pig Iron")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- Bronze()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,4)
- monitor.write("Bronze")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- Invar()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,6)
- monitor.write("Invar")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listAlloys()
- Signalium()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,8)
- monitor.write("Signalium")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(41,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listAlloys()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(41,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- listAlloys()
- Stop()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,14)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.lime))
- monitor.setCursorPos(41,14)
- sleep(1)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.black))
- -- \Alloy Inputs
- -- Liquid Inputs
- 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
- Stop()
- listLiquids()
- Glue()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(2,8)
- monitor.write("Glue")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listLiquids()
- Pyrotheum()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,6)
- monitor.write("Pyrotheum")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listLiquids()
- Lava()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,8)
- monitor.write("Lava")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,12)
- --monitor.write("xxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listLiquids()
- Blood()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,6)
- monitor.write("Blood")
- monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listLiquids()
- Water()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,8)
- monitor.write("Water")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listLiquids()
- Cryotheum()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,6)
- monitor.write("Cryotheum")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(41,8)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(41,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listLiquids()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(41,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- listLiquids()
- Stop()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,14)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.lime))
- monitor.setCursorPos(41,14)
- sleep(1)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.black))
- -- \Liquid Inputs
- -- Block inputs
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(2,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listBlocks()
- Obsidian()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(15,8)
- monitor.write("Obsidian")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,12)
- --monitor.write("xxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(15,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listBlocks()
- Seared()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(28,8)
- monitor.write("Seared Stone")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(28,14)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- Stop()
- listBlocks()
- Glass()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,8)
- monitor.write("Glass")
- monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(41,10)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- --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
- --Stop()
- --listBlocks()
- --xxxx()
- --monitor.setBackgroundColour((colors.red))
- --monitor.setCursorPos(41,12)
- --monitor.write("xxxx")
- --monitor.setBackgroundColour((colors.black))
- 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
- listBlocks()
- Stop()
- monitor.setBackgroundColour((colors.red))
- monitor.setCursorPos(41,14)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.lime))
- monitor.setCursorPos(41,14)
- sleep(1)
- monitor.write("Stop")
- monitor.setBackgroundColour((colors.black))
- -- \Block inputs
- end -- end If sentence
- end -- Ends the function
- -- \If clicked here then Function
- -- Function for Metal input
- function Aluminum()
- redstone.setBundledOutput("back", colors.black)
- end
- function Ardite()
- redstone.setBundledOutput("back", colors.gray)
- end
- function Bedrockium()
- redstone.setBundledOutput("back", colors.lightGray)
- end
- function Cobalt()
- redstone.setBundledOutput("back", colors.white)
- end
- function Copper()
- redstone.setBundledOutput("back", colors.green)
- end
- function DarkIron()
- redstone.setBundledOutput("back", colors.lime)
- end
- function DesRedstone()
- redstone.setBundledOutput("left", colors.lightBlue)
- end
- function EnerGlowstone()
- redstone.setBundledOutput("left", colors.cyan)
- end
- function Gold()
- redstone.setBundledOutput("left", colors.lime)
- end
- function Iron()
- redstone.setBundledOutput("left", colors.green)
- end
- function Lead()
- redstone.setBundledOutput("left", colors.white)
- end
- function LiquidRedstone()
- redstone.setBundledOutput("left", colors.lightGray)
- end
- function LiquiCoal()
- redstone.setBundledOutput("left", colors.gray)
- end
- function LiquiEmerald()
- redstone.setBundledOutput("left", colors.black)
- end
- function ManaMetal()
- redstone.setBundledOutput("left", colors.blue)
- end
- function Mithril()
- redstone.setBundledOutput("left", colors.purple)
- end
- function Unstable()
- redstone.setBundledOutput("left", colors.red)
- end
- function Nickel()
- redstone.setBundledOutput("left", colors.magenta)
- end
- function ResEnder()
- redstone.setBundledOutput("left", colors.pink)
- end
- function Shiny()
- redstone.setBundledOutput("left", colors.yellow)
- end
- function Silver()
- redstone.setBundledOutput("left", colors.orange)
- end
- function Steel()
- redstone.setBundledOutput("left", colors.brown)
- end
- function Tin()
- redstone.setBundledOutput("right", colors.brown)
- end
- function Uranium()
- redstone.setBundledOutput("right", colors.orange)
- end
- function Yellorium()
- redstone.setBundledOutput("right", colors.yellow)
- end
- -- \Function for Metal input
- -- Function for Alloy Input
- function AluminumBrass()
- redstone.setBundledOutput("right", colors.pink)
- end
- function Alumite()
- redstone.setBundledOutput("right", colors.magenta)
- end
- function Bronze()
- redstone.setBundledOutput("right", colors.red)
- end
- function Redalloy()
- redstone.setBundledOutput("right", colors.purple)
- end
- function Electrum()
- redstone.setBundledOutput("right", colors.blue)
- end
- function Enderium()
- redstone.setBundledOutput("right", colors.black)
- end
- function Invar()
- redstone.setBundledOutput("right", colors.gray)
- end
- function Lumium()
- redstone.setBundledOutput("right", colors.lightGray)
- end
- function Manyullyn()
- redstone.setBundledOutput("right", colors.white)
- end
- function PigIron()
- redstone.setBundledOutput("right", colors.green)
- end
- function Signalium()
- redstone.setBundledOutput("right", colors.lime)
- end
- -- \Function for Alloy input
- -- Function for Fluid Input
- function Pyrotheum()
- redstone.setBundledOutput("right", colors.cyan)
- end
- function Blood()
- redstone.setBundledOutput("right", colors.lightBlue)
- end
- function Cryotheum()
- redstone.setBundledOutput("back", colors.magenta)
- end
- function Glue()
- redstone.setBundledOutput("back", colors.red)
- end
- function Lava()
- redstone.setBundledOutput("back", colors.purple)
- end
- -- \Function for Fluid Input
- -- Function for Block Input
- function Glass()
- redstone.setBundledOutput("back", colors.blue)
- end
- function Obsidian()
- redstone.setBundledOutput("back", colors.lightBlue)
- end
- function Seared()
- redstone.setBundledOutput("back", colors.cyan)
- end
- -- \Function for Block Input
- -- Function to stop every input
- function Stop()
- redstone.setBundledOutput("right", 0)
- redstone.setBundledOutput("left", 0)
- redstone.setBundledOutput("back", 0)
- end
- -- \Function to stop every input
- Stop()
- -- Function to Empty Smeltery
- function Empty()
- redstone.setBundledOutput("back", colors.yellow)
- end
- -- \Function to Empty Smeltery
- -- \Functions for right clicking on monitor and what it is supposed to do.
- -----------------------------------------------------------------------------------------------
- -- Repeat event for checking if someone Right clicked the Monitor
- repeat -- Repeat this:
- event,p1,p2,p3 = os.pullEvent() -- Get Event data: event,p1,p2,p3 from os.pullEvent()
- if event == "monitor_touch" then -- When the event monitor_touch is triggered then
- mouseWidth = p2 -- sets the number of p2 into the variable mouseWidth.
- mouseHeight = p3 -- same with mouse Height
- checkClickPosition() -- This will run the Function previously created!
- -- Debug stuff!
- print(mouseWidth)
- print(mouseHeight)
- print("CLL: ", CLL)
- print("CAL: ", CAL)
- print("CML: ", CML)
- print("CBL: ", CBL)
- --\ Debug stuff!
- end -- end the IF statement.
- until event=="char" and p1==("x") -- Repeat until event "char" is activated and "x" is pressed.
- -- \Repeat event for checking if someone Right clicked the Monitor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement