Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- textutils.slowPrint ("What would you like to do?")
- local event XY = os.pullEvent("mouse_click")
- XY = X ..",".. Y
- sleep(0.5)
- print ("")
- print ("|Harvest Wheat|")
- print ("|Harvest Sugarcane|")
- print ("|Open Doors|")
- print ("|Turn On Quarry|")
- print ("|Turn Off Quarry|")
- print ("|Enable Golems|")
- print ("|Disable Golems|")
- print ("|Turn On Automatic Sugarcane Harvesting|")
- print ("|Turn Off Automatic Sugarcane Harvesting|")
- if XY == "1,3" -- Harvest Wheat
- or XY == "2,3"
- or XY == "3,3"
- or XY == "4,3"
- or XY == "5,3"
- or XY == "6,3"
- or XY == "7,3"
- or XY == "8,3"
- or XY == "9,3"
- or XY == "10,3"
- or XY == "11,3"
- or XY == "12,3"
- or XY == "13,3"
- or XY == "14,3"
- or XY == "15,3" then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint ("Harvesting Wheat...")
- sleep(1)
- rs.setOutput("left", true)
- sleep(2)
- rs.setOutput("left", false)
- textutils.slowPrint ("Done!")
- end
- if XY == "1,4" -- Harvest Sugarcane
- or XY == "2,4"
- or XY == "3,4"
- or XY == "4,4"
- or XY == "5,4"
- or XY == "6,4"
- or XY == "7,4"
- or XY == "8,4"
- or XY == "9,4"
- or XY == "10,4"
- or XY == "11,4"
- or XY == "12,4"
- or XY == "13,4"
- or XY == "14,4"
- or XY == "15,4"
- or XY == "16,4"
- or XY == "17,4"
- or XY == "18,4"
- or XY == "19,4" then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint ("Harvesting Sugarcane...")
- sleep(1)
- rs.setOutput("right", true)
- sleep(2)
- rs.setOutput("right", false)
- textutils.slowPrint ("Done!")
- end
- if XY == "1,5" -- Open Doors
- or XY == "2,5"
- or XY == "3,5"
- or XY == "4,5"
- or XY == "5,5"
- or XY == "6,5"
- or XY == "7,5"
- or XY == "8,5"
- or XY == "9,5"
- or XY == "10,5"
- or XY == "11,5"
- or XY == "12,5" then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint ("Opening Doors...")
- sleep(1)
- rs.setOutput("bottom", true)
- sleep(2)
- rs.setOutput("bottom", false)
- textutils.slowPrint ("Done!")
- end
- if XY == "1,6" -- Turn On Quarry
- or XY == "2,6"
- or XY == "3,6"
- or XY == "4,6"
- or XY == "5,6"
- or XY == "6,6"
- or XY == "7,6"
- or XY == "8,6"
- or XY == "9,6"
- or XY == "10,6"
- or XY == "11,6"
- or XY == "12,6"
- or XY == "13,6"
- or XY == "14,6"
- or XY == "15,6"
- or XY == "16,6" then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint ("Turning On Quarry...")
- sleep(2)
- rs.setBundledOutput("back", 1)
- textutils.slowPrint ("Done!")
- end
- if XY == "1,7" -- Turn Off Quarry
- or XY == "2,7"
- or XY == "3,7"
- or XY == "4,7"
- or XY == "5,7"
- or XY == "6,7"
- or XY == "7,7"
- or XY == "8,7"
- or XY == "9,7"
- or XY == "10,7"
- or XY == "11,7"
- or XY == "12,7"
- or XY == "13,7"
- or XY == "14,7"
- or XY == "15,7"
- or XY == "16,7"
- or XY == "17,7" then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint ("Turning Off Quarry...")
- sleep(2)
- rs.setOutput("back", false)
- textutils.slowPrint ("Done!")
- end
- if XY == "1,8" -- Enable Golems
- or XY == "2,8"
- or XY == "3,8"
- or XY == "4,8"
- or XY == "5,8"
- or XY == "6,8"
- or XY == "7,8"
- or XY == "8,8"
- or XY == "9,8"
- or XY == "10,8"
- or XY == "11,8"
- or XY == "12,8"
- or XY == "13,8
- or XY == "14,8"
- or XY == "15,8" then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint ("Enabling Golems...")
- sleep(1)
- rs.setOutput("top", true)
- sleep(1)
- rs.setOutput("top", false)
- textutils.slowPrint ("Done!")
- end
- if XY == "1,9" -- Disable Golems
- or XY == "2,9"
- or XY == "3,9"
- or XY == "4,9"
- or XY == "5,9"
- or XY == "6,9"
- or XY == "7,9"
- or XY == "8,9"
- or XY == "9,9"
- or XY == "10,9"
- or XY == "11,9"
- or XY == "12,9"
- or XY == "13,9"
- or XY == "14,9"
- or XY == "15,9"
- or XY == "16,9" then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint ("Disabling Golems...")
- sleep(1)
- rs.setOutput("top", true)
- sleep(1)
- rs.setOutput("top", false)
- textutils.slowPrint ("Done!")
- end
- if XY == "1,10" -- Turn On Automatic Sugarcane Harvesting
- or XY == "2,10"
- or XY == "3,10"
- or XY == "4,10"
- or XY == "5,10"
- or XY == "6,10"
- or XY == "7,10"
- or XY == "8,10"
- or XY == "9,10"
- or XY == "10,10"
- or XY == "11,10"
- or XY == "12,10"
- or XY == "13,10"
- or XY == "14,10"
- or XY == "15,10"
- or XY == "16,10"
- or XY == "17,10"
- or XY == "18,10"
- or XY == "19,10"
- or XY == "20,10"
- or XY == "21,10"
- or XY == "22,10"
- or XY == "23,10"
- or XY == "24,10"
- or XY == "25,10"
- or XY == "26,10"
- or XY == "27,10"
- or XY == "28,10"
- or XY == "29,10"
- or XY == "30,10"
- or XY == "31,10"
- or XY == "32,10"
- or XY == "33,10"
- or XY == "34,10"
- or XY == "35,10"
- or XY == "36,10"
- or XY == "37,10"
- or XY == "38,1""
- or XY == "39,10"
- or XY == "40,10" then
- textutils.slowPrint ("Turning On Automatic Sugarcane Harvesting...")
- sleep(1)
- rs.setOutput("right", true)
- textutils.slowPrint ("Done!")
- end
- if XY == "1,11" -- Turn Off Automatic Sugarcane Harvesting
- or XY == "2,11"
- or XY == "3,11"
- or XY == "4,11"
- or XY == "5,11"
- or XY == "6,11"
- or XY == "7,11"
- or XY == "8,11"
- or XY == "9,11"
- or XY == "10,11"
- or XY == "11,11"
- or XY == "12,11"
- or XY == "13,11"
- or XY == "14,11"
- or XY == "15,11"
- or XY == "16,11"
- or XY == "17,11"
- or XY == "18,11"
- or XY == "19,11"
- or XY == "20,11"
- or XY == "21,11"
- or XY == "22,11"
- or XY == "23,11"
- or XY == "24,11"
- or XY == "25,11"
- or XY == "26,11"
- or XY == "27,11"
- or XY == "28,11"
- or XY == "29,11"
- or XY == "30,11"
- or XY == "31,11"
- or XY == "32,11"
- or XY == "33,11"
- or XY == "34,11"
- or XY == "35,11"
- or XY == "36,11"
- or XY == "37,11"
- or XY == "38,11"
- or XY == "39,11"
- or XY == "40,11"
- or XY == "41,11" then
- textutils.slowPrint ("Turning Off Automatic Sugarcane Harvesting...")
- sleep(1)
- rs.setOutput("right", false)
- textutils.slowPrint ("Done!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement