DustinRosebery

thermal_timer

Nov 25th, 2016
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. m = peripheral.wrap("bottom")
  2. timer = 460
  3.  
  4. function countdown()
  5.   sum = timer
  6.   for i = timer,0,-1 do
  7.     m.setCursorPos(1,1)
  8.     m.write(sum)
  9.     sum = sum - 1
  10.     sleep(1)
  11.     m.clear()
  12.   end
  13. end
  14.  
  15.  
  16. while true do
  17.   redstone.setAnalogOutput("back",15)
  18.   sleep(3)
  19.   redstone.setAnalogOutput("back",0)
  20.   countdown()
  21. end
Add Comment
Please, Sign In to add comment