Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(1)
- term.clear()
- local m = peripheral.wrap("back")
- local mx, my = m.getSize()
- m.setTextScale(1)
- term.setTextColor(32768)
- term.setCursorPos(1,1)
- term.setCursorPos(1,6)
- term.setTextColor(32)
- print("Ofen 2 Quicklime")
- term.setCursorPos(20,6)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,6)
- term.setTextColor(16384)
- print("[X]")
- term.setCursorPos(1,7)
- term.setTextColor(32)
- print("Ofen 3 Quicklime")
- term.setCursorPos(20,7)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,7)
- term.setTextColor(16384)
- print("[X]")
- term.setCursorPos(1,8)
- term.setTextColor(256)
- print("Ofen 4 Magnesium")
- term.setCursorPos(20,8)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,8)
- term.setTextColor(16384)
- print("[X]")
- term.setCursorPos(1,9)
- term.setTextColor(128)
- print("Ofen 5 Titanium")
- term.setCursorPos(20,9)
- term.setTextColor(8192)
- print("[O]")
- term.setCursorPos(25,9)
- term.setTextColor(16384)
- print("[X]")
- while true do
- event, side, x, y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 21 and y == 5 then
- term.setCursorPos(1,13)
- term.setTextColor(2)
- print("Ofen 1 Quicklime heizt Auf")
- rs.setOutput("right", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 5 then
- term.setCursorPos(1,13)
- term.setTextColor(512)
- print("Ofen 1 Quicklime kühlt Ab ")
- rs.setOutput("right", false)
- elseif event == "monitor_touch" then
- if x == 21 and y == 6 then
- term.setCursorPos(1,14)
- term.setTextColor(2)
- print("Ofen 2 Quicklime heizt Auf")
- rs.setOutput("left", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 6 then
- term.setCursorPos(1,14)
- term.setTextColor(512)
- print("Ofen 2 Quicklime kühlt Ab ")
- rs.setOutput("left", false)
- elseif event == "monitor_touch" then
- if x == 21 and y == 7 then
- term.setCursorPos(1,15)
- term.setTextColor(1)
- print("Ofen 3 Quicklime heizt Auf")
- rs.setOutput("top", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 7 then
- term.setCursorPos(1,15)
- term.setTextColor(512)
- print("Ofen 3 Quicklime kühlt Ab ")
- rs.setOutput("top", false)
- elseif event == "monitor_touch" then
- if x == 21 and y == 8 then
- term.setCursorPos(1,16)
- term.setTextColor(1)
- print("Ofen 4 Magnesium heizt Auf")
- rs.setOutput("bottom", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 8 then
- term.setCursorPos(1,16)
- term.setTextColor(512)
- print("Ofen 4 Magnesium kühlt Ab ")
- rs.setOutput("bottom", false)
- elseif event == "monitor_touch" then
- if x == 21 and y == 9 then
- term.setCursorPos(1,17)
- term.setTextColor(1)
- print("Ofen 5 Titanium heizt Auf")
- rs.setOutput("front", true)
- elseif event == "monitor_touch" then
- if x == 26 and y == 9 then
- term.setCursorPos(1,17)
- term.setTextColor(512)
- print("Ofen 5 Titanium kühlt Ab ")
- rs.setOutput("front", false)
- elseif event == "monitor_touch" then
- if x == 38 and y == 1 then
- rs.setOutput("right", false)
- rs.setOutput("left", false)
- rs.setOutput("top", false)
- rs.setoutput("bottom", false)
- rs.setOutput("front", false)
- sleep(0.1)
- shell.run("clear")
- shell.run("startup")
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement