Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local time = 15
- local mon = peripheral.find("monitor")
- local i = 1
- mon.clear()
- mon.setTextScale(4)
- while true do
- local j = time - i
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write(tostring(j))
- if rs.getInput("bottom") then
- if i == time then
- rs.setOutput("top",true)
- sleep(0.05)
- rs.setOutput("top",false)
- end
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement