Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("top")
- monitor.clear()
- monitor.setTextColor(colors.red)
- monitor.setCursorPos(1, 1)
- monitor.setTextScale(1)
- monitor.write("Hello")
- function rubber()
- monitor.setCursorPos(1, 2)
- monitor.clearLine()
- if rs.getOutput("right", true) then
- monitor.write("Rubber farm is on")
- elseif rs.getOutput("right", false) then
- monitor.write("Rubber farm is off")
- end
- local event = { os.pullEvent() }
- if event == "monitor_touch" then
- if rs.getOutput("right") == true then
- rs.setOutput("right", false)
- else
- rs.setOutput("right", true)
- end
- else
- write("test")
- end
- rubber()
- end
- local event = { os.pullEvent() }
- if event == "monitor_touch" then
- local event = os.pullEvent()
- if event == "monitor_touch" then
- local event = { os.pullEvent() }
- if event[1] == "monitor_touch" then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement