Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local x = 1
  2. local y = 1
  3.  
  4. local monitor = peripheral.wrap("top")
  5.  
  6. while true do
  7.     os.pullEvent("redstone")
  8.     if rs.getInput("bottom") then
  9.         -- start timer
  10.         for i = 60,0,-1 do
  11.             monitor.clear()
  12.             monitor.setCursorPos(x, y)
  13.             monitor.write(tostring(i))
  14.             sleep(1)
  15.         end
  16.         -- end of timer
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement