Advertisement
SkyCrafter0

Untitled

Dec 3rd, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local time = 15
  2. local mon = peripheral.find("monitor")
  3. local i = 1
  4. mon.clear()
  5. mon.setTextScale(4)
  6.  
  7. while true do
  8. local j = time - i
  9. mon.clear()
  10. mon.setCursorPos(1,1)
  11. mon.write(tostring(j))
  12. if rs.getInput("bottom") then
  13. if i == time then
  14. rs.setOutput("top",true)
  15. sleep(0.05)
  16. rs.setOutput("top",false)
  17. end
  18. end
  19. sleep(1)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement