Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- CCQuarryStartup by Teki
- local monitor = term.current()
- local sizeX,sizeY = monitor.getSize()
- local timeout = 5
- local elapsed = 0
- monitor.setBackgroundColour(colors.black)
- monitor.setTextColor(colors.white)
- monitor.clear()
- local myTimer
- while true do
- myTimer = os.startTimer(1)
- if elapsed == timeout then
- shell.run("ccquarry")
- return 0
- end
- event, side, xPos, yPos = os.pullEvent()
- if event == "key" then
- monitor.clear()
- monitor.setCursorPos(1,1)
- return 0
- elseif event == "timer" then
- elapsed = elapsed + 1
- end
- monitor.clear()
- monitor.setCursorPos(6,3)
- write("Trying to resume ccquarry...")
- monitor.setCursorPos(4,sizeY)
- write("(Press any key to cancel... ".. timeout - elapsed .. ")")
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement